Let\'s say I have the following PowerShell source:
PowerShell shell = PowerShell.Create().AddCommand("Get-NetAdapter")