I'm looking for a way to embed a PowerShell console (which will open with admin privileges) inside a window in WPF.
I need the console to open and run a script (ps1 file) from a certain path and of course there will be I/O between the console and the user.
I want the console to be an integral part of the window in XAML and not something external.
Is there a way to do this in C #?
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)