One EMP detonated 50 miles above the continental United States will knock out 90 to 95 percent of the electric grid, and there is no restoring it for a minimum of two years.
And I guarantee you it ain't coming back online in two years, especially when you consider the physical gear needed to restore the electrical grid comes from China.