You could try shutdown /i
Alternatively you could use powershell:
for remote pc's:
restart-computer -computername Computer1 -force
for the local pc:
restart-computer -force
----------
If this helps, please accept the answer and upvote