4168 shaares
2792 private links
2792 private links
The Popen class in the subprocess Python module is used to run an external program as a separate process within the host operating system. So, this is the most convenient approach to running a PowerShell script from within the Python program.