how to enter cmd commands from python script code example
Example 1: python write to command prompt
import os
os.system("start /B start cmd.exe @cmd /k {command}")
Example 2: how to execute a cmd command in python
CMD /K - execute a command then remain
import os
os.system('cmd /k "Your Command Prompt Command"')