Addendum:
should have used
Code:
cmd /c build.bat
instead of
Code:
.\build.bat
right from the start.
Lzarus invoking cmd.exe works perfectly, the script executes as designed finally allowing me to use loops and other advanced syntax.