In our powerscript, I could do something as follows:
$output = myexternalcommand
write-output $output
This works. However, the output is displayed only after the external program finishes running. Although the external program is dumping status periodically, there is no indication of what is going on from within the script.
I am wondering if there is a way to display the output of the external program as it is running. Regards.