typing a commmans in cmd through python code example
Example 1: execute command in python script
import os
os.system("ma Commande")
#Exemple:
os.system("cd Documents")
Example 2: python write to command prompt
import os
os.system("start /B start cmd.exe @cmd /k {command}")