The current produced by the magneto is AC, alternating current. A battery is DC, direct current. The CDI needs the AC signal to fire the plug at the right time. Aleman is correct. You would have no ignition timing and the plug would only fire one time, when you connected it the first time, instead of every revolution of the crankshaft.
Tom