Running Windows.bat file from Vera initiated http call

You can’t add a line after a return statement.

Your code is, presumably, borrowed from elsewhere, and is horrible. See Post by @rigpapa :

https://community.getvera.com/t/the-allow-meme-in-scene-scripts-must-die/210048