バッチファイルで指定した戻り値を返すには exit を使います。
[バッチファイル] exit /b 3
C:\TIPS>echo %ERRORLEVEL% 3
確認したOS: Windows 10
↑ PAGE TOP
▲