/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
InitialSessionState initial = InitialSessionState.CreateDefault(); Runspace runspace = RunspaceFactory.CreateRunspace(initial); runspace.Open(); Collection<PSObject> results = invoker.Invoke("...");