Multiple consecutive individual ADB backup/restore without prompt
You can try using adb shell input tap &lt;x&gt; &lt;y&gt; where x and y are the coordinates of where you would like to tap on the screen (can show coords in Developer Options).  I was able to use this code to restore an individual backup:

#$1 is backup file

adb restore ${1} &amp;
sleep 2
adb shell input touchscreen tap &lt;x&gt; &lt;y&gt;
wait


I found it useful to sleep for a couple seconds after the restore command, but it may not be necessary.