There is an incredible amount of functionality that we can use for automation purposes if you have access to the WRITE_SECURE_SETTINGS permission.
For example, on any device through ADB if you type:
settings list global
settings list secure
You have access to a TON of potentially useful things for automation. Right now, the only way to really use these kinds of commands in Tasker is to use either the SecureTask or AutoTools plugin, OR to export an app using Tasker App Factory and have THAT request android.permission.WRITE_SECURE_SETTINGS as an "Extra Permission."
This shouldn't be necessary. I and many others would love for this to be built in to Tasker. There doesn't even need to be an extra Action for this, just have the permission in the Manifest so we can successfully grant it via ADB. Then we can call simple Java functions to change these settings (literally two lines).
eg. with this permission you can code Tasker to dynamically change the nav bar without needing a plugin via Settings.Secure.sysui_nav_bar