Restart PC with timer and delay

Is it possible to use this to just create a package using 2012 to push out a nightly reboot with a countdown timer, a delay option and a reboot now option? If so can someone get me pointed in the right direction on the script, seeing how there is no install or uninstall.