When you are done editing a Pokémon, you set it back to the save file in whatever slot you choose.
When you are done editing a save file, you export the save file.
When you want to use an edited save file, you import it back to your console and overwrite the existing save file so that when the game boots up, it reads the edited save file.