Implement Android Enterprise API (Device Owner)
There's a huge, Huge, HUGE untapped resource out there: Device Owner (NOT Device Admin). You can do all sorts of wild things that most experienced Android powerusers had no idea even exists and tend to try to root their device (unnecessarily) to accomplish. SecureTask accomplishes this goal, but with the developer having suddenly abandoned all of his apps and began ignoring emails about acquisition of the source code (they're all free apps), we need a long-term replacement.
SecureTask is also very vulnerable to external apps because it performs no password verification when it receives the plugin fire intents, even if you enter a password in its configuration. Besides, it would be much more secure to have Tasker holding the Device Owner permission than a plugin, the only problem being that you CANNOT have ANY accounts setup on the device when provisioning Device Owner to Tasker, so Tasker's licensing checks would fail. But sometimes it can get even more complicated than that.
Here are some features of Device Owners (this is a very abbreviated list — taken from SecureTask's Play Store page):
1) Dump logs (Android 6+)
2) Block camera access
3) Wipe data
4) Read/Write secure settings (Android 6+)
5) Use fingerprint sensor (Android 6+)
6) Clear/Set pin/password
7) Read lock info
8) Wake screen
9) Read data usage stats (Android 6+)
10) Freeze apps (Android 7+ and device owner needed)
11) Kill apps (Android 7+ and device owner needed)
12) Block uninstall apps (Android 5+ and device owner needed)
13) Hide apps (Android 5+ and device owner needed)
14) Reboot (Android 7+ and device owner needed)
15) Change lock screen info (Android 7+ and device owner needed)
16) Remove and set Keyguard (Android 6+ and device owner needed)
17) Install/Uninstall apps silently (Android 6+ and device owner needed)
18) Change system language (Android 5+)
19) Enable/disable status bar (Android 6+ and device owner needed)
20) Enable/disable android backup (Android 8+ and device owner needed)
21) Send USSD phone requests (Android 8+)
22) Change apps permissions policy (Android 6+ and device owner needed)
23) Change system update policy (Android 8+ and device owner needed)
24) Change NFC status (Android 6+)
25) APN settings (Android 9+ and device owner needed)
26) Clear data and cache apps (Android 9+ and device owner needed)
27) Block mobile access for each app (Android 9+ and device owner needed)
28) Set time and timezone (Android 9+ and device owner needed)
29) Mute device (Android 5+ and device owner needed)
30) Change permissions other apps (Android 6+ and device owner needed)
31) Change private DNS settings (Android 10+ and device owner needed)
32) Get phone identifiers (Android 6+ and device owner needed)
33) Airplane mode action (Android 6+)
There are sooooo many more features available than just that though! Plus some new ones have been added to Android API since he initially wrote SecureTask.
These are Android-level APIs, NOT Play Store APIs, so they're not subject to Google's frequently changing opinions on things.
(Caveat to all of this: Device Owner breaks many vendor-specific features. In the case of Samsung, it cripples Knox, preventing Secure Folder, Cloud sync (although I found a workaround), and other features from being available at all.)