How to execute ONCE and FOR ALL ?

Like Tuerer said, except you need to store it in the save game, to make sure it never runs again.