Without the chemical reacion in the battery, there would be no magetism in your electromagnet.
If the chemical reaction did not create the magnetism, the it cannot be argued that emergence of a new property following a chemical reaction means the chemical reaction must have created it. You've just demonstarted the creation of a new property (magnetism) following a chemical reaction (the discharge of the battery) that was not created by the reaction.
Are you suggesting that the soul does not exist until conception - then at the moment of conception is created and immortal and is a part of the organism we call “mankind”?