pull the blower housing off and check where the wires go.
You should have one going to the carb which needs battery voltage while the engine is running
There should be one going to the coil which is the kill wire and goes to ground to stop he engine ( open circuit to start )
After that you are left with the alternator wires.
These are problematic because there is a dozen different alternators that could be fitted to that engine .
For those you will either need to start the engine then see what comes out or get the IPL for the mower it came from.
If there is a piggy back solenoid like a car then yes the battery cable goes to the solenoid and you will have to fit a monemtry switch to go the the trip terminal that gets 12V to start.