multithreading - Jobs in powershell -


i using ps-session run console application on remote machine. not want pass control next statement until console application executed. how pass control on console application in powershell? multi-threading option? or need create jobs same?

this command using:

invoke-command -session $session -scriptblock {start-process $args[0] -argumentlist $args[1] -redirectstandardoutput $args[2] -redirectstandarderror $args[3]} -args $dir,$arguments,$stdoutlog,$stderrlog; 

here dir consoledirectory(d:\temp\consoleapp.exe)

also, if use -wait command, console application executed control never returns powershell.


Comments

Popular posts from this blog

4x4 Matrix in Python -

python - String indices must be integers and while issue -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -