Depending on what you want to do, there may or may not be a script for it. Macros and Abilities on Characters are a hard class of object for the API to execute. They must be preprocessed to replace any references to @{selected} or @{target} with things that make sense. If you're just trying to select from a hierarchy of Rollable Tables, that can be done by the RecursiveTable API script. The API requires a Game created by a currently active Pro Subscriber.