Run External Action in script

Apologies, I should have explained be better. By external action I mean a custom integration app external action. This is really just an extension of what I asked here: End an automation partway through with script. I would like to be able to start a button automation, check some criteria, and then conditionally run an external action based on the results of a the check. I know I can cancel an automation using an error (only 5 times before reset), or I could set a checkbox and have an additional rule based automation, but these options have some drawbacks. I thought maybe with the addition of the executeAction method, it might be possible to call external actions directly in scripts, which would make it much easier to run them conditionally.