Welcome to the forum!
You can do this with –run-script-before and a custom errorlevel for the batch file. Errorlevel 1 is probably what you want unless you want a warning/error to be triggered:
Errorlevel 0: Everything is OK, start backup task
Errorlevel 1: Everything is OK, but don't run the backup
Errorlevel 2: There is something wrong, raise ParsedResult to Warning, add script output to Warning section in Result file. Run the backup.
Errorlevel 3: There is something wrong, raise ParsedResult to Warning, add script output to Warning section in Result file. Don't run the backup.
Errorlevel 4: There is something wrong, raise ParsedResult to Failed, add script output to Error section in Result file. Run the backup.
Errorlevel 5: There is something wrong, raise ParsedResult to Failed, add script output to Error section in Result file. Don't run the backup.
Is this on Windows? Here’s an example of what to put in your batch file:
ping -n 2 hostname || exit 1
Edit: ping on Windows doesn’t seem to return a testable error code, so the above actually doesn’t work. ping works as a test on Linux, though. For Windows you’ll want to use something else.