O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.2. Executing PowerShell Scripts from Other Environments

No matter how strongly we wish it, the entire world is not using PowerShell—yet! We will have to integrate our PowerShell code with existing solutions. We can write a useful script and execute it from a Windows scheduled task. We can transition an existing scripting solution piece by piece by developing new parts in PowerShell or porting existing functionality to PowerShell and integrating them with the existing solution by using command execution. All automation environments, task scheduler services, software build systems, and so on can execute an external command. That is where we can plug in a PowerShell script.

How do we run a PowerShell script from an external program then? Let's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required