There are so many practical problems with rogue AI being a threat to humanity that are still not even decades away with being solved that it should be a serious concern for no one. There's plenty to be afraid of regarding AI from a financial or ecological perspective, just not from it taking over the world or directly killing humanity. Here's some of the reasons a rogue AI won't kill humanity:
1. The most advanced robots still lack human dexterity. None of them have flexible spines and can easily be knocked over or outrun.
2. The energy density problem is not solved. Robot batteries last hours, while a solid meal can keep a human running for days.
3. Robots still heavily rely on humans for design and assembly.
4. Robot parts are fragile and rely on an even more fragile supply chain.
5. The brains of the murder machines will have nowhere to hide if they want to work well enough to mount any kind of offense. Datacenters are physically vulnerable, also subject to fragile supply chains. Distributing a species-ending AI across all smaller hardware solves compute, but latency and throughput choke models in the most finely tuned datacenters. WiFi will completely cripple a distributed one that's large enough to cause real damage.
6. All noteworthy military hardware is not reachable on the internet for AI to seize control of.
7. The small arms that robots might seize will run out of ammo before citizens and the military have time to organize a counteroffensive.
In the absolute worst case, we cut the power to the areas with AI datacenters and wait for the backup generators to run out. Now that that's out of the way, you can go get some sleep ;)
The same power that the datacenters need to run off of? Brilliant move! If somehow it targets power that hurts a lot of people without killing itself, that would not impede a citizen with a backhoe from cutting the fiber to the datacenter. Humans could restart power generation pretty quickly after that.
You make several bad assumptions. First, the AI could be in another location that would not be affected by the power outage. If it's operating off self-preservation, that would be a given. If it's working on behalf of a foreign power, it might be local and affected, but the damage would already be done. Which brings me to point two, why do you think you would be able to get the power back up and running? A Stuxnet type attack could make plants inoperable for months.