You cannot run batch scripts in the Mendix cloud. If you're running Mendix locally (or on an environment you control), you can use Java to run a batch script:
Runtime.getRuntime().exec("cmd /c start build.bat");
StackOverflow question for reference