bash scripts/test.sh
REM store return code
set return=%errorlevel%
call scripts\kill_applications.bat > kill.log
exit /B %return%

bash scripts/test.sh
REM store return code
set return=%errorlevel%
call scripts\kill_applications.bat > kill.log 2>&1
exit /B %return%

Hide all kill application output
Hide all kill application output
