Needless to say, the police are working on, or already have, similar such units.
It is also against federal law to connect an electrical device to a weapons trigger, it is called building a machine gun.