But do you have to give the automation tool to the company? My impression is that the automation tool is not part of the job.
I was eventually fired from that job (I suspect my boss didn't like seeing me lean back and watch my scripts and macros run), and this never came up. I think the real value here is the skill and desire to automate these things, not the automation scripts themselves.