Trying to create a batch script for windows that runs a program with python3 if available else python2.
I know the script can be executed with $py -2 script.py
and py3 with $py -3 script.py.
and if I run py -0, it returns all the python versions.
How do I build this script?
I do not want to check if the python directory is available or not, I'd prefer to check in a way that is python location agnostic.