Pythonerous -
First, welcome to Python and the forum!
You can run scripts from the Command Line or PowerShell, however as Yoriz mentioned, you'll likely need to pass in the full file path of the script in order for it to work.
Something like this:
D:\Projects\Test.py (this would be for a file called "Test.py" that is located in a folder called "Projects" on your D drive).
Without having Python added to PATH, you will likely need to pass in the location of your Python interpreter as well.
I highly suggest adding Python to PATH - this can be easily done via a checkbox option during initial Python install.
For most of my scripts, I simply double click the .py file, and they run automatically.
No Command Line / PowerShell drama. :D
First, welcome to Python and the forum!
You can run scripts from the Command Line or PowerShell, however as Yoriz mentioned, you'll likely need to pass in the full file path of the script in order for it to work.
Something like this:
D:\Projects\Test.py (this would be for a file called "Test.py" that is located in a folder called "Projects" on your D drive).
Without having Python added to PATH, you will likely need to pass in the location of your Python interpreter as well.
I highly suggest adding Python to PATH - this can be easily done via a checkbox option during initial Python install.
For most of my scripts, I simply double click the .py file, and they run automatically.
No Command Line / PowerShell drama. :D