I don't know what you meaan by "once you're connected". Is the "adb..." command something you type in the shell?
If, so you want to run that, not "cat".
If, so you want to run that, not "cat".
subprocess.run(["adb", "shell", "input", "keyevent", "85"])