I am trying to write a batch(for win) and a shell script for linux to automate key and touch events on a android UI. At the moment in a windows batch file I am starting a ad
Put all the commands you want to run at once in an external file, one per line, then run:
adb shell < commands.txt