You can make replacement rail a jig. This is my jig and injector 2 in 1.
Jig from modded rail, pin 1 connected to pin 10
Injector by Trinket M0 powered by a super cap
The supercap can be charged from the rail. If you connect pin 3 to pin 5, Switch will output 5V on pin 4.