I ha a function, where I call an application with the &
operator. The application produces several line command line output, downloads some files, and returns a string:
& "app.exe" | Out-Host
$var = ...
return $var
It seems, that on the console appears the output produced by app.exe
only after app.exe
terminates. The user does not have any real time information which file is downloading. Is there a way to continuously update the console when app.exe
is running?