I don't know if this has been addressed but when you run at reboot scripts the iCloud registration screen comes up and requires End User interaction.
Question
Potential Bug: At Reboot and iCloud Setup
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
