我正在尝试在Windows中自动执行安装过程
import subprocess
import os
from pywinauto.application import Application
os.system('cmd.exe')
os.chdir('C:/PathOfExecutableIWantToLaunch')
os.system('ExecutableFile -console')
# A new command prompt is launched with options 1 and 2
# How to pass control to second command prompt
os.system('1')
# I want to pass option 1 to proceed with installation
如何在Python中自动化这个部分?