It really depends on what spell you downloaded, but basically once you download a spell, open up the downloaded map in the World Editor, copy the spell triggers required to run the spell, paste them into your triggers, and recreate the variables required into your map.
You may also require a dummy unit and dummy abilities, but you wouldn't necessarily have to copy those... you can simply recreate them.