subprocess.Popen(['powershell', r'G:\test.ps1'])
Desktop\test.ps1:
write-output 'test'
test.py:
# -*- coding: iso-8859-1 -*-
import subprocess, sys
p = subprocess.Popen(["powershell.exe",
"C:\\Users\\<USER>\\Desktop\\test.ps1"],
stdout=sys.stdout)
p.communicate()
python test.py
test