I'm not a neurologist but...
It makes great comic-book science, but not real science.
In real science, neurologists can control lab animals (from insects to mice) in carefully controlled experiments and in certain carefully constrained ways, via electricity.
But these require:
- opening up the skull
- finding the right set of neurons in the right area of the brain
- implanting tiny electrodes in those neurons so they produce shocks to only those neurons.
- firing the electrodes within carefully constrained parameters to trigger responses or to change behavior/learning/etc.
From the various shows/articles I've seen/read, this isn't mind control, but triggering responses or linking behavior to responses. It is to "mind control" what "I write code for the cable company!" is to writing viruses that infect alien space ships, spread throughout those shps, and include graphics that display on alien ship screens is in Independence Day. Oh sure, both involve a similar set of precursor ideas and baseline concepts, but they aren't the same thing.
If you just fire electricity randomly at someone's brain, it will have some effects, but probably not anything controllable or predictable except in broad strokes.
Wikipedia discusses the use of electroconvulsive therapy. That article notes that it can cause memory problems, including amnesia. Note the History section and how it has been used in the past. Again, this isn't just "firing an electric beam at target."
Now, if you want to build this in a comic book or far future world, then sure. It is no greater stretch than Tony Stark making Iron Man armor in a cave or a high school kid making tiny arm-guns that shoot super-string webbing goo that he also invented to augment his spider-bite derived super powers. But I'd say this is a sci-fi technology far ahead of anything on earth now.