i am writing batch script for executing adb commands but while executing "SU" commands only the first commands runs "adb shell" and stops
as the script is typing all the commands very fast and not waiting for previous command to run completely so that next command can be entered into the shell window that is "su" example of code is below
adb shell & su
adb shell "su -c 'rm /data/system/gesture.key'" adb shell "su -c 'rm /data/system/*.key'"
and see the question in How to use su command over adb shell?