It looks like the "Write to a Text File" outputs a file that is encoded as UTF-8-BOM (BOM = byte order markup). If the output is a *.bat there appear to be issues with the output to the command window when the BOM is present.
As an example, if a batch file outputted from VA contains:
@echo off
echo hello world
timeout /t 5
...the command window's first line shows this when executing the batch file:
However if this same file is opened with Notepad++ and re-encoded as UTF-8 the output is the following:
So the first output line doesn't have the error and everything displays correctly.
Would it be possible to add some encoding options to the "Write to a Text File" action? Or maybe make the default encoding UTF-8?
EDIT by Pfeil: Default encoding was changed.