Need to run a workflow through Fix script

Abhishek Barik
Tera Contributor

Hi Team,
We have a requirement to force run a workflow through fix script. I am new to this procedure. Could you please help me in script to run a workflow through sample script that can help me?
Sample script:

var wflw = new Workflow();
wflw.startFlow(wflw.getWorkflowFromName('Vendor Guest Acc Sync'), 'insert');


Thanks in advance,

Abhishek