You can use the runScript expression in a tag. https://docs.inductiveautomation.com/display/DOC81/runScript
runScript