title: Run python source file from PowerShell
body: <p>I'm trying to learn python but have some problem running source files from power shell. When I type 'python' it opens up and I can type python commands directly in the shell. I think this is called interactive mode. But when I try to run/execute a source file I get an error message: It sayys: Syntax error: invalid syntax. </p>
  
  <p>I use 'python myfile.py' when I try to execute the script. </p>
  
  <p>If I run the same file from IDLE it works just fine. Ana idea what I'm doing wrong?  </p>
  
  <p>Here is myfile.py. I'm running python 2.7</p>
  
  <pre><code> # filename: myfile.py
  
  while True:
        s = raw_input('Enter something: ')
        if s == 'Quit':
            break
        print 'Lenght of the string is', len(s)
  print 'Done'
  </code></pre>