I have a similar error but with another exit code:
Error 1 The command "CD C:\SPHOLS\Labs\Lab01_WebParts\SharePointWebPart1\SharePointWebPart1\\WSP
createwsp.bat
" exited with code 4. SharePointWebPart1