Scripts into a scene trigging insteon

I created a script “that does work” to shut my garage with a if/then condition. However when I put that script in my scene, it doesnt want to run the script at all. Anyone know why this would be?