Easy one today where we are making a .bat file to run a Python script.
This assumes your file is called main.py and that your virtual python environment is in .\venv\Scripts\python.exe so adjust accordingly or remove the venv part if you aren't using a virtual environment which I highly recommend you do.
SET ThisScriptsDirectory=%~dp0
SET PyScriptPath="%ThisScriptsDirectory%main.py"
"%ThisScriptsDirectory%venv\Scripts\python.exe" %PyScriptPath%
pause
Most up to date version of this file is at
https://github.com/LukeKeam/python-start-script-bat