It already does work.
https://www.dom.com/corporate/what-we-do/electricity/generat...
This worked in 1970. Why wouldn't it work today? Energy storage solutions are deployed around the nation, and world, for this very reason.
The main advantage is that energy storage today is more efficient, with new technologies coming out.