C:\data\backup.bat :
C:\InterSystems\Ensemble\bin\cache -s"C:\InterSystems\Ensemble\Mgr" -U%%SYS ##Class(Backup.General).ExternalFreeze() <C:\data\login.scr
echo %ERRORLEVEL%
rem note that we need to check errorlevel from highest to lowest here....
if errorlevel 5 goto OK