Can it be
turned into a function?
Before building an automation, I think it's worth looking at the whole lifecycle.
How often does the task happen? How much time does it actually take? How much does an error cost? What other systems depend on it? And what will it take to keep the automation working six months or two years from now?
A process that takes ten minutes once a month may not justify several days of development and testing. A process that takes an hour every day across several systems probably deserves a much closer look.