Assigning scripts to buttons in iOS Widget?

I’ve got a few scripts I’d like to assign to buttons in the iOS widget but when I go to select the action for a button, I’m only presented with a list of scenes. Is there a way to assign a script to a button in the widget?