I assume you want to perform an offline backup since you want to force the users off. If that is the case, then you will have to do a "LIST APPLICATIONS" command and capture the IDs of the user on the DB in question and force them off. I cannot help you with the DOS scripting to do this.
Can you do the "MirrorNightlyRestore" using an online backup? It should be easier to script that.
Andy