Force Install macOS Update
Here is a simple command to force install macOS updates in the background:
softwareupdate -i -a
After running that, you can use casper to notify user to reboot :) and here is a useful link to enable update on the Mac: https://jumpt.wordpress.com/2015/02/12/enforcing-critical-osx-system-updates-via-casper/