CodeProject: Asynchronously Execute PowerShell Scripts from C#. Free source code and programming help

If you need to run PowerShell scripts from another application, here is a way you can do that.

Introduction

My previous article showed how to run PowerShell scripts from C#. That implementation was limited in the sense that it would run scripts synchronously, blocking until the script finished what it was doing. That is fine for short-running scripts, but if you have long-running or even never-ending scripts, you will need asynchronous execution. This article shows just how to do that.

CodeProject: Asynchronously Execute PowerShell Scripts from C#. Free source code and programming help

Comments

No Comments