Upgrading to 6.1.1 did not change anything. Still getting "Get Output Failed: Script file creation failed. The created file is corrupted.", on a very simple script that has no trouble running on its own. Will open a support ticket.
Again, simply adding lines of comment characters ('#') to a script that works in either SW or standalone, renders it not working in SW - yet still working on its own.