Ability to not shut down laptop while application is running

I am currently tasked with updating drivers and firmwares using vendor provided automated tools. The issue I am running into is while these tools are updating drivers silently in the background, a user can reboot/shut down their PC and I want to avoid this.

“If test.exe is running, do NOT shut down/reboot computer”.

Is there anything I can do to help me out in this scenario?

Usually I’d just configured the Action Settings to “Display a message while the action is running” that tells the user not to shut down.