Calling a workflow from a custom function?

Calling a workflow from a custom function?

Is it possible to run a workflow using a custom function? if not is it possible to run a workflow with an action button?

Any help would be great