Is there a way to capture STDOUT information from an executable within powershell, without affecting the default behaviour of the STDOUT process? Whenever I attempt to capture output from an executable within PowerShell, it appears that the STDOUT is then formatted before being returned to the host/screen. Further, it also appears that PowerShell, when asked to capture stdout output, feeds the data to the host line by line, only returning a line of data once a line feed/carriage break is found in the output.
Basically, I want to have a way to capture STDOUT data from an executable run within powershell, without having the STDOUT output, or action, changed IN ANY WAY. Does anyone know if this is possible currently?
I have already read, and I am aware of, the limitations around the Start-Transcript/Stop-Transcript cmdlets. If this was able to grab this output for me, my problem would have been solved.
Thanks in advance to anyone that can assist here.
-M