IMO, you do not need any .bat file to do your update(s). SetupBuilder can handle this for you. The web update installer package runs (by default) elevated so you have full control over the machine(s). You can use all script functions in web update and web installs. BTW, the "Detect Previous Version" is not limited to web updates.

If you have any further questions, just let me know.