I am running command-line Python scripts from the Windows taskbar by having a shortcut pointing to the Python interpreter with the actual script as a parameter.
Afte
There's no need to wait for input before closing, just change your command like so:
cmd /K python