I’ve found a way to force shutdown without warning, so for future searches on the forum:
open terminal and type
sudo crontab -e
If you want the Mac to shutdown everyday at 10:30pm type
30 22 * * * /sbin/shutdown -h now
Save and exit (press Esc key, then type ZZ)
PS: it works perfect. Even if the Mac is on Lockscreen it will be turned off