Who is this for? The kind of person who doesn't stop to consider how much energy it would take to run this hypothetical device, and what that energy/money/resources could do on Earth. "The common clay of the new West..."
Sure, but you'd be talking about a civilization that could afford to build it, and operate it... a civilization so advanced that they can afford more than double our current energy production just to electromagnetically shield Mars.
I saw estimates here that 10% of current US energy use would suffice to start. And this would be entirely automated, using methods not that different from JWST, except in scale. And arguably, it's less complicated than beaming energy back to Earth. But still, those could be parallel efforts.