I am using the following script to restart computers at a specific time each day using Scheduled Task to create the event that would call the Script (Compiled .exe)
#include <AutoItConstants.au3>
#include <Misc.au3>
#NoTrayIcon
;Begin Script
Local $L_V_Scalar_Variant_Message = "This computer will restart in the next 2 minutes; save all open documents immediately!"
SplashTextOn("Restart Computer", $L_V_Scalar_Variant_Message, -1, -1, -1, -1, $DLG_TEX