Jenkins Exception that is caused by stdout redirection using windows cmd
I found out how to do it without pipeline. It only has to do with command line script:

start "" C:\MyApp\MyApp.exe &gt;&gt; text.txt


This call is asynchronous (i.e., the command line won't wait for MyApp.exe to return). If you want it to wait, you can use the /w flag, like this:

start /w "" C:\MyApp\MyApp.exe &gt;&gt; text.txt