I need to collect the standard output and error log from several processes into one single log file.
So every output must append to this log file.>
Maybe it is not quite as elegant, but the following might also work. I suspect asynchronously this would not be a good solution.
$p = Start-Process myjob.bat -redirectstandardoutput $logtempfile -redirecterroroutput $logtempfile -wait add-content $logfile (get-content $logtempfile)