Help With Script/ Entity Not Working

I set up an integration between my Samsung tv and HA and I created scripts to control buttons that are not in the standard media control tile. When I run the scripts/ entities in a web browser everything works properly but when I add the entity on my Elgato Stream Deck nothing happens. Am I missing something or has anyone else run into this issue? I should also note that the pre-made entities work fine just not the ones I created.