exit

Quit the current CMD instance or the current batch file. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/exit.

exit

exit /b

exit 2