That may depend on what type of electronic ignition you have. If you have a detached coil, momentarily grounding out the coil shouldn't have an effect on the electronics.
Personally I wouldn't try it do to electrical sensitivity issues that may occur. But maybe, if you use #18 white red wire to a modern relay (negative coil) to signal positive power off @ ignition system.