Как открыть CMD и запустить код с помощью Python

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