You can use the Automation Script adapter to run an Automation Script that operates on a selected object.