I have diverted you from the topic in my message, but there are several ways to do this.
The first way is to control the 12V line feeding the ignition coil, as you considering.
For controls that use the primitive "CDI" or "TCI" method, it is difficult to control the ignition coil.
A transistor with a voltage that can withstand about 500V is required, and it is dangerous. It is very painful.
From your question, I don't think it is such a bike.
Another is to use a control line used for a "safety features" such as a kickstand, etc. Unless the bike is pre-1990 or a cheap bike, there will always be a control line that stops the ignition with the kickstand as a safety device. Hacking this control line can be achieved without using a large switching device.
The problem is that some bikes seem to use this "safety features" as a "reset" for the internal uC.
Modern bikes are equipped with actuators in various places to purify exhaust gases and increase power output. After this actuator is reset, it initializes and then performs the actual control.
Therefore, switching it while the car is running would cause problems.
To begin with, this control line is not designed to be used in such a way; it may have an LPF or similar built in and not be able to detect the few milliseconds of signal needed to shut off the ignition.
The second method is limited to the bikes that can do it.
If it is a cheap or old bike, it may not use uC, but an analog method, an op-amp or comparator to control the ignition. If so, it is controllable.
Anyway, try using and controlling PchFETs as I mentioned before. I think it will work.
The sensor can be a simple microswitch, or you can get a commercially available sensor from ebay and install it on your bike.
My recommendation is the domino sensor on the Ducati Panigale, but it is expensive.
I think it is feasible.
My bike, NSR250R, is equipped with something close ECU called "PGM-3".
Ignition is controlled by CDI system, but since this bike was produced during the transitional period with direct ignition system, control of ignition timing and exhaust valves is done by uC (NEC uCOM-87AD). Controlling the kickstand on this bike, as mentioned, causes problems.
The control of the exhaust valves and ignition timing is initialized once, and after about 500 milliseconds, the control is restored. It is not rideable.