So öffnen Sie CMD und führen Code mit Python aus

os.system("start /wait cmd /c {command}")
Thoughtless Tapir