Example of the code:
$logfile = "log.txt" $filename = "backup.rar" Start-Transcript -Path $logfile -Append -Force "Start..." Start-Process -FilePath "C:\Program Files\WinRAR\Rar.exe" -ArgumentList ("a " + $filename + " @backup.lst") -NoNewWindow -Wait "Done" Stop-Transcript Output in the console:
... Start... Error: Do not find backup.lst Done ... But in the log file:
... Start... Done ... Where output Rar.exe?
PS: Sorry for my bad English.