The --def exec option allows you to call any 3rd party executable / command-line tool or PowerShell command, so if you can figure out how to call their API with a script, then you can hook up FileBot to call your script.