Run Python scripts in PowerShell directly
Edit the PATHEXT environment variable and add the .py extension.
Just add this line to your PowerShell profile:
$env:PATHEXT += ";.py"
or you could just edit PATHEXT globally in the system settings (just search in the Start menu for "environment" and choose the option for "Edit environment variables for your account").