You don't. Gamification reward result, not long term investment. So imagine you spend time creating a script instead of doing a repetitive task, you lose in the beginning and make up for it at end. If you do not make up for it, then maybe it was not such a good idea and your wisdom sucks.
Well that's the theory. First, except for the most rudimentary task (i.e. the one robots will do around the same time), your result depend on many external factor on which you have no control whatsoever. Say maybe your script was a good idea, but too bad that the company decided to cut the bottom 50% of the staff before you have had a chance to use the script. Well there would be no game without luck being involved, right ?
Secondly, the best way to win at a game is either to cheat or to make other lose. Best gaming system in the world: the financial world, I am sure you are looking forward to have your healthcare following the same model.