-1

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

henrycarteruk
  • 11,908
  • 2
  • 32
  • 38

1 Answers1

2

Did you try?

import subprocess
subprocess.call("powershell \\path\to\script.ps1")
Nathan McCoy
  • 2,674
  • 1
  • 22
  • 39