Not sure what you're asking -- once you've created a button, clicking on it will immediately execute the defined action. (Unless you're sending it to the current window, in which case it acts like a KEYSTACK -- so it won't execute until you're back at the prompt.)