| description | RunSpace08 Code Sample |
|---|---|
| ms.date | 09/13/2016 |
| ms.topic | reference |
| title | RunSpace08 Code Sample |
Here is the source code for the Runspace08 sample described in
Creating a Console Application That Adds Parameters to a Command.
This sample application creates a runspace, creates a pipeline, adds two commands to the pipeline,
adds two parameters to the second command, and then executes the pipeline. The commands that are
added to the pipeline are the Get-Process and Sort-Object cmdlets.
:::code language="csharp" source="~/../powershell-sdk-samples/SDK-2.0/csharp/Runspace08/Runspace08.cs" range="11-86":::