I would like to open a powershell from my python script, then launch another python script in this newly created powershell.
import subprocess
subprocess.call("start C:\\Windows\\System32\\WindowsPowerShell\\v1.0", shell=True)
# Here, I would like to write this in the new opened powershell : python ./hello_world.py (then press ENTER)
input("end")
Any idea how I can do that ? Thanks and have a good day !
I tried the subprocess.Popen + communicate but nothing was written in my new powershell