The other issue is making sure the rear wheel is always off the ground.
It can be done on electric start bikes. I am sure you can find a switch but finding something that uses low power might be hard, to run it off a battery. But if the bike has electric start it must have a good battery.