When the commands are executed, this is done blindly. I have used at normal batch files to run everything that goes to stdout or stderr in a file. Now I want to do this as simple as possible, but still complete, also with the powershell. The point is to be able to understand what happened.