Reputation: 1073
I want to make an executable that contains a collection of PowerShell scripts. On the left hand side the user could see a list of different scripts to select and run, and on the right hand side would be the output.
If I have a basic wpf app that looks like the following:
Would I be able to create an instance of PowerShell inside the right portion of the window?
i.e. something like this:
The output window (the right side) would pretty much just be for the output of whatever script was run.
Before I get too invested in this idea though, is it even possible to run/output PowerShell scripts inside a window of a WPF application?
Upvotes: 2
Views: 1769
Reputation: 18166
I have a series of posts about using PowerShell from inside a .net app at my blog PowerShellStation.com (Writing a Host)
Upvotes: 5