CALL "%TASK%" IF %ERRORLEVEL% NEQ 0 ECHO failed > "%TASK%.failed" DEL "%TASK%"