I use my widget with this command line :
ps> get-process explorer | my_widget
ps>
This command shows a window with information about the process in the pipe.
In my c# code, i create a pipeline and execute a $form.showmodal() in it. (I added the variable $form with SetVariable)
Powershell command line is not blocked but my widget doesn't work very good :
There is a timer which refresh my gadget but it seems the event for the timer doesn't work.
Can you help me to anderstand ?
Powergadgets create a process to host gadgets ? How it works ?