I want to execute and terminate Windows games from shell. The actual need is to launch games using Python upon receiving specific command. I have tried using the following code to launch game.
import subprocess
subprocess.Popen("D:/Entertainement/Games/NFS1/speed.exe",shell=False)
When I run this code, the game launches and stops without any errors. But the same game runs fine when executed from Windows Explorer. The game doesn't require administrative privileges and runs fine without that.