SecureActionButtonTemplate supports using a custom type attribute to run a SecureHandler script.
Lua Code:
button:SetAttribute("type1","customscript");-- Can be anything as long as it isn't one of the predefined actions
button:SetAttribute("_customscript",[[-- Attribute name here must match the value of the "type" attribute above prefixed with "_"
-- Do something
]]);
(This post was meant to replace my previous one as a better option)