The only way I have found to do is, at least in the community version, is writing custom modules. For Windows, its PowerShell, for Linux you could use bash. Pandora not care much about the scripting language as long as the output is in its prescribed XML format. Basically, have it check for a condition, issue command if required and sent output back to Pandora.
​
Theres a bunch of examples on the forums of this format, there is also a PowerShell template https://pandorafms.com/library/powershell-module-template/
​
I've created dozens of custom modules and can't be happier with Pandora.