After you're done with that then you need PokeGen (I know PokeGen is frowned heavnly around here but since we're not modificing the Pokemon themselves then it's okay; at least in Smogon.)
Then you just put the save back into the game.
Then you just put the save back into the game.
You need a flash cart and a homebrew problem named savegame manager; this lets you to transfer your cart save to your computer and vice-versa