AlphaModder
AlphaModder

Reputation: 3386

Forward input to powershell, read output from it without the user seeing a console c#

Is there any way I could have an application that acts as a different interface for a powershell prompt, like the ISE does? I just want to make it visually different. I'm thinking something to do with stdin and stdout, but i'm not totally sure how to make that work in C#. As well as the issue of hiding the console window.

Upvotes: 0

Views: 75

Answers (1)

Keith Hill
Keith Hill

Reputation: 202052

Sure you can use the PowerShell engine API to host PowerShell within a WPF or WindowsForms application. See this MSDN topic on hosting PowerShell in your own application.

Upvotes: 1

Related Questions