Windows batch w/ error ends unexpectedly w/ status 'Success'

Thank you for your reply @JanneK.

The script consists only of echo and sleep commands.
The error is invoked in the line with ‘xxxx’ which is obviously not a valid command.

Here’s the script: