I search a embedded PowerShell console to my projects C# (Added from Toolbox). I found some simples examples to execute a command and have the return value (PowerShell. Create (), AddScript, AddCommand, Invoke, ...) It is simple but it does not allow the inoput user. Of more the context is not kept and a new console is created at each run (lost root path).
I also found an example PoshConsole, but it is a complete labyrinthine system and it is made in xaml - techno which I master not at all (and which apparently is not compatible with Form classic - maybe I make a mistake?)
Here we are, I hope to have been clear - Sorry I'm french Beforehand thank you.