Batch process merge and detach alert box

I'm trying to create a txt file to use with batch processor that will merge a reference and then detach the rest of the references.  The commands to do this work fine except there is a prompt to click OK after both commands.  Is there a command that can be used with batch processor that will dismiss or surpress the Alert dialog?  Any help would be appreciated.

Thanks,