Trivia En Español Juego

I was able to solve this using AppleScript! It's been working very well so far, both with Teams running in the foreground and in the background. If I'm on a different space, it does switch to the Teams window though.