This is not possible using an in-product script. You would have to use the Resilient API. Typically this would be done as a custom function that would be run by a Resilient Circuits container.
Ben
------------------------------
Ben Lurie
------------------------------