Shortcut to run shell script?

I want to create a keyboard shortcut to run a script to lock and dpms off my screen but the shortcut doesn’t really trigger my shell script. Is there another utility I can use?