Batch to JavaScript compiler
Currently not very functional. This is very much alpha quality software.
npm install -g bat2js
bat2js <input.bat>
This is an example of a batch file that can be compiled to JavaScript:
@echo off
rem Declare variables
set hi=Hello
set world=world!
rem Output text to the console
echo %hi% %world%
echo Goodbye world!
pause