I found a way to batch appium commands using executeDriverScript as shown here: https://appiumpro.com/editions/85-batching-appium-commands-using-execute-driver-script-to-speed-up-tests
executeDriverScript is not available by default in my appium and I am just not sure how to use this. Could someone who has used it help out? Thank you