-1

How do I call a powershell script from python but the ps script lies on a network drive?

henrycarteruk
  • 12,708
  • 2
  • 36
  • 40

1 Answers1

2

Did you try?

import subprocess
subprocess.call("powershell \\path\to\script.ps1")
Nathan McCoy
  • 3,092
  • 1
  • 24
  • 46