Just. Install that app : https://play.google.com/store/apps/details?id=com.github.standardadb
Then macrodroid import the macro
And pair the adb app to your phone then every time press local shell and done
Some devices will need more delay for the macro