
You can use the automator command-line tool to run a workflow.
The following command runs a workflow with somevariable set to somevalue in the myworkflow.workflow file.
$ automator -D somevariable=somevalue myworkflow.workflowFor more information, see the automator man page.