Использование конвейера:
Код: Выделить всё
Pipeline pipe = runspace.CreatePipeline();
Код: Выделить всё
PowerShell ps = PowerShell.Create();
Подробнее здесь: https://stackoverflow.com/questions/513 ... in-c-sharp
Код: Выделить всё
Pipeline pipe = runspace.CreatePipeline();
Код: Выделить всё
PowerShell ps = PowerShell.Create();