...
In the UMS profile go to System > Firmware Customization > Custom Commands > Desktop. For more on custom commands, see Custom Commands.
Add the following as a Final desktop command:
if [ ! -f /wfs/.one_more_reboot_done ] ; then touch /wfs/.one_more_reboot_done ; systemctl reboot ; fi
Save the profile.