Open dialog box on PC and get response?

During high electricity prices I turn off certain devices automatically. However, I’d like to pop up a dialog box (with a timeout) that warns me, “shutting off devices in 10 seconds, is this ok?” which would allow me to cancel the shutdown. IOT Link has a “notification” feature, which doesn’t appear to include more than just a “close/click” response and has no timeout.

How can I accomplish this on a PC?