Looking to do a domain join using a PowerShell script. Currently the PowerShell script initiates a Restart-Computer before exiting, and it interrupts the rest of the Cloudbase-Init routine. If Cloudbase-Init can perform the reboot based on the exit code of the script, that would be preferable.