CMD /K - execute a command then remain
import os
os.system('cmd /k "Your Command Prompt Command"')
// To run pytho script from CMD
// type python and the name of the file. Assuming hello.py
python hello.py
os.system("start /wait cmd /c {command}")
import os
os.system('cmd /k "Your Command Prompt Command"')
# If the .py file is on the desktop, to run the file:
cd Desktop
FileName.py
just write your file name and hit enter