Link to home
Start Free TrialLog in
Avatar of itnifl
itniflFlag for Norway

asked on

Custom PSHost for interactive powershell from C#

I was trying to see the sample code for something like a custom PSHost for interactive powershell from C#. I am interested in running the Powershell scripts in a windows forms application and displaying the results in the form. I want the results to be displayed in real time. If not, the wait time for results to the user will be too long. However, when I look at the web page below, I can not seem to find the sample code anywhere:
https://msdn.microsoft.com/en-us/library/ee706546(v=vs.85).aspx

I guess I must be doing something wrong, or are the code samples missing?
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itnifl

ASKER

Thank you.
I don't understand why they talk of sample code in the link, but have no sample(https://msdn.microsoft.com/en-us/library/ee706546(v=vs.85).aspx).