Can someone assist me with the possible reasons why I cannot run .py files in PowerShell. I can run them in CMD fine. I thought PowerShell carried the same basic functionality as the CMD has? Below is the error I am getting? Thank you.
PS C:\Users\ajoh\Desktop\Python\py4e\ex_03> Ch_03_Score_Spy.py
Ch_03_Score_Spy.py : The term ‘Ch_03_Score_Spy.py’ is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
At line:1 char:1
- CategoryInfo : ObjectNotFound: (Ch_03_Score_Spy.py:String) , CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command Ch_03_Score_Spy.py was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: “.\Ch_03_Score_Spy.py”. See “get-help about_Command_Precedence” for more details.