I saw this post: https://www.reddit.com/r/tasker/comments/5sfc8p/fyi_if_you_upgrade_to_magisk_v11/ddge2el/ about changing the path to execute root commands with Magisk.
It works well with "settings" like commands, but for dumpsys it's not doing it:
/sbin/su -c "dumpsys batterystats --reset" does not work, even though the command goes through. Moving/deleting the the quotation marks doesn't help either.
Any hints? (I know this will be fixed in next version)