Since most workflows operate using the same model as user event scripts, you can execute nlapiLoadRecord and nlapiSubmitRecord from your scripts to trigger your workflows.
nlapiLoadRecord causes a Before Record Load workflow trigger to fire.
nlapiSubmitRecord causes Before Record Submit and After Record Submit triggers to fire.
You can also use nlapiTriggerWorkflow to trigger a workflow. It seems like the best use of it is to submit a workflow button click, since you cannot do that through traditional means using nlapiSubmitRecord.
nlapiTriggerWorkflow('employee', 1288, 'customworkflow_nel_approve_training', 'workflowaction_nel_approve_training'); This causes a workflow named customworkflow_nel_approve_training to be triggered for employee 1288. workflowaction_nel_approve_training is the name given to the Script ID when configuring the Add Button action.