If you need to run it from an icon, put the line in a text file and then create a "project" icon that uses IconX as its default tool. That way you can run it from workbench like any other executable. You can access the default tool setting from the "Get Info" option on Workbench.