wjhguitarman
wjhguitarman

Reputation: 1073

Operating PowerShell inside an application?

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: enter image description here

Would I be able to create an instance of PowerShell inside the right portion of the window?

i.e. something like this: enter image description here

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

Answers (1)

Mike Shepard
Mike Shepard

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

Related Questions