How to Run Python Scripts from the Command Line in Windows
After installing Python and creating a script, all you have to do is open the command prompt and type the name of the script file (and pass any parameters to the script after that).
For example, in Windows XP, you would go to the Start menu, click on Run…, and enter cmd. Then you would need to input the full path to the Python script file and hit enter.
For example, if your Python script was located at C:\Temp\TestPython.py, you would enter this full path at the command prompt.