Hi,
When scheduling a shutdown you can use the shutdown command, so to schedule a 3 minute delay shutdown would be:
shutdown -s -t 180
Here's a few guides on how to schedule a shutdown using Task Scheduler:
https://www.thewindowsclub.com/schedule-shutdown-restarts-windows-7-task-schedular
https://windowsreport.com/schedule-automatic-shutdown-windows-10
Best regards,
Leon