To use, type 's' in the Omnibox followed by the command you want to pass to your script.
Scriptable Shortcuts allows you to use the omnibox (enter "s" and space) to use scripted shortcuts. You can create the shortcuts in the option panel, in javascript.