C:\test>perl -e"exit(511)" & echo %errorlevel% 511