There are examples in Scotland of using wind (generating electricity) to pump water to a high elevation and then using the water for generation of electricity at future points in time as it is released down the hill.
JimA
===============================================================
Those systems have been around for decades. Original they were powered by excess hydro but now solar and wind are also used.
Helms Pumped Storage is a 1,212 MW hydro power project. It is located on Kings river/basin in California, the US. The project is currently active. It has been developed in single phase. The project construction commenced in 1977 and subsequently entered into commercial operation in 1984.
The power plant operates by moving water between an upper and lower reservoir. When energy demand is high, water is released from the upper reservoir to the generating plant and the water is discharged into the lower reservoir. When demand is low (such as at night), water is pumped into the upper reservoir to be used as stored energy at a later time. This is accomplished by pump-generators which serve a dual role: the pumps can reverse for use as generators. The plant can go from a stand still to operational in eight minutes which allows it to meet peak energy demand. It consumes more electricity pumping than generating electricity but pumping occurs during periods of low demand with unused surplus energy available at lower costs from the electric grid.
https://en.wikipedia.org/wiki/Helms_Pumped_Storage_Plant
Jaak