Here are three AutoIt scripts and compiled exes for closing the reboot dialog.
The starter actually waits for the dialog to appear which is more secure than sending keystrokes (might be faster too).
Usage in batch:
Starter.exe Setup.exe
The /S switch is included.