Ejecuta el archivo fuente de Python desde PowerShell

Estoy intentando aprender Python pero tengo algún problema al ejecutar archivos de origen desde Power Shell. Cuando escribo 'python' se abre y puedo escribir comandos de python directamente en el shell. Creo que esto se llama modo interactivo. Pero cuando intento ejecutar / ejecutar un archivo fuente, aparece un mensaje de error: Se dice: Error de sintaxis: sintaxis no válida.

Utilizo 'python myfile.py' cuando intento ejecutar el script.

Si ejecuto el mismo archivo desde IDLE funciona bien. ¿Ana idea de que estoy haciendo mal?

Aquí está myfile.py. Estoy corriendo Python 2.7

<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>

Respuestas a la pregunta(6)

Su respuesta a la pregunta