PowerShell pass all command line arguments

Rather than putting a lot of development environment paths into environment variable PATH, it can be preferable to make little shell / PowerShell scripts and invoke the programs that way. For example, when testing multiple versions of the Python interpreter on a script, a simple method can be to create a one-liner Powershell script for each Python version, passing all command line arguments to the Python interpreter.

& $env:LOCALAPPDATA\\Programs\\Python\\Python3x\\python.exe $args

the preceding ampersand “&” makes this a Call so that the command line is expanded properly.


For Unix-like shells:

$HOME/python3.x/bin/python "$@"