If you're just looking to automate simple button sequences, a lot of people use the macro software that comes with their controller adapter (like Cronus Zen or Titan devices) or programmable keyboards/mice if they're playing through Remote Play. The editor you choose usually depends on the hardware you're using.
Out of curiosity, are you trying to automate something in a single-player game or just create quality-of-life shortcuts? That'll make it easier to recommend an approach.
https://sports-games.io/