Relay or switch that can remotely power OFF and automatically power ON
It seems to me, if you used a Wifi enabled Outlet which you could switch on or off (wouldn't matter) remotely, you could have that hooked as the trigger for a normally closed Timed relay, and at the trigger (say the socket gains power, when you turn it on) the relay opens cutting power for a pre-set time, maybe 5 minutes if that's the time you need, after which it will automatically close again and allow power to flow free.

If you configure it correctly with the right timing options it would avoid possible down sides such as getting caught in a triggering loop.

Unfortunately i know little about this so hopefully someone will come along with a more helpful answer, but maybe this will get you going in the right direction.

This Multi-function Relay should be able to be configured to meet your needs, but again i'm a novice at this stuff so maybe it won't but i hope it helps you get on the right path.
https://www.amazon.com/gp/product/B00VR1F3LC/ref=ask_ql_qh_dp_hza