In my enrollment process I have one policy that upgrades to Mojave(actually the last one)
I don´t want any user notification so I have just added the parameters --agreetolicense -nouserinteraction to the installation.
But the problem is that Mojave want to restart, but the quickadd package is still running and is not allowing this to happend. Is there somehow are workarround for this. The best would be the quickadd package would close and then the mac restart and install mojave.