Automator vs Keyboard Maestro

The only other thing I guess would be Hammerspoon like @sylumer points out.
I found the learning curve for that fairly steep though, where KM through the simple interface lends itself better to naturally progressing from simple entry level automation to advanced programming options.