If you inadvertently clicked on Restart menu from Client Notification, that can be scaring if the target computers are critical servers in your company.
Don’t panick. Here is a way to cancel it.
Solution
Run the script as Admin on all the affected computers in whatever way you feel comfortable with.
#CANCEL a pending reboot
Remove-Item -Path 'HKLM:\SOFTWARE\Microsoft\SMS\Mobile Client\Reboot Management\RebootData'
Remove-Item -Path 'HKLM:\SOFTWARE\Microsoft\SMS\Mobile Client\Updates Deployment\RebootFlag
Remove-ItemProperty -Name * -path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired'
Shutdown -a
Restart-Service ccmexec -force