Early on in the cartoon The Legend of Korra, we're shown one of the main characters working at his job. He works in a power plant, where he and his coworkers spend all day using Bending (essentially elemental magic) to conjure up lightning bolts and throw them at some sort of machine, to produce electric power for the city. But as interesting of a concept as it is, actual electrical systems depend on steady, predictable current; surges (such as the kind brought on by a lightning strike) tend to destroy electrical machinery.
Is there any way to make this system practical? Assuming the existence of a world with all the same physical laws as ours, but where elemental magic exists that allows for people to conjure up lightning at will, would it be possible to create such a power plant? And if so, how would it deal with the highly uneven current?
(Yes, this is tagged science-based. Yes, the science-based tag says no magic. The question isn't about the magical side of it, but the physical side.)