Runspace01 Code Samples

Here are the code samples for the runspace described in Creating a Console Application That Runs a Specified Command. The command that is invoked in the runspace is the Get-Process cmdlet.

For complete sample code, see the following topics.

Language Topic
C# Runspace01 (C#) Code Sample
VB.NET Runspace01 (VB.NET) Code Sample

See Also

Windows PowerShell Programmer's Guide

Windows PowerShell SDK