Buy an empty replica peq battery box, mount it to the rails and put the battery in, bring wires through a hole in the rail into the back of the peq box to your battery.
As an u18 player I can see were you're coming from but I can't see it going well, also the law would need to be changed so it would actually be useful and any changes of airsoft law probably won't be for the best.