Power Automate to disable AFK

Dear Dev Team,

Is it allowed, to create a script via MS Power Automate, to create Keyboard input and not get kicked after 30 min without keyboard input?
Or would this be a reason to get banned?
I could not find any indicator in your GTC that this is not allowed.

Beat Regards