As per this sample – http://msdn.microsoft.com/en-us/library/windows/desktop/ee706590(v=vs.85).aspx,
I am trying to invoke my script in an async way. But, at the same time, I want to give feedback to the GUI on the set of operations happening i.e. want to spit the Write-verbose stuffs happening behind the scenes parallely on the GUI.
I am confused in achieving this – because I see there is a DataReady event on the PipelineReader object ? Is it possible to somehow consume that w.r.t the MSDN sample above such that I can show feedback on the GUI ?
Conceptually, I am not able to relate this sample with the DataReady event.
Add a Rich Textbox = txtOutput on a Form first
& Add a reference to