There are actually products that do this kind of power cycling. I'm a happy user of a ResetPlug that fixes my WiFi problems by rebooting the router when the connection is down.
(I don't mean this as a spammy ad, just in case other people have as terrible Internet access as Chunghwa is giving me)