Publishing pre edition tasks and edition continue if task fails...

I have a pre-edition task which calls a DOS batch file. Within this batch file it does some processing to determine whether the edition should actually run.

What I want the batch file to do is return whatever it is that the sys_editionCommandTask is looking for so that if I don’t have “Continue on Failure” checked, then the edition content lists will not run.

Anyone know how to do this?