To use this, Tasker needs to be granted permission to check what services are running on your device
Install the Tasker Permissions app and follow the prompts.
adb shell pm grant net.dinglisch.android.taskerm android.permission.
If you're on a mac write
./adb shell pm grant net.dinglisch.android.taskerm android.permission.