I have tried many of the commands listed above, however none worked, even after setting my path to include the directory where I installed Python.
The command py -3 file.py
always works for me, and if I want to run Python 2 code, as long as Python 2 is in my path, just changing the command to py -2 file.py
works perfectly.
I am using Windows, so I'm not too sure if this command will work on Linux, or Mac, but it's worth a try.