There are some complications of invoking PS scripts through the dialog.
First, the PS engine is only set up when the console tool window is opened the first time. So either we have to trigger opening the tool window programatically to setup PS host (which is odd), or we have to decouple the engine from the tool window
(which requires a bit of work but possible).
Second, we need to show the output of the scripts somewhere. This is again back to the first point, either opening the console window, or showing it inline within the dialog.
There might be other issues that I may have overlooked. When are we supposed to be code complete for RTM? If it's tomorrow, I'm not confident this can be done.