How to start or restart the DraftSight API service from the Task Manager?

I am trying to write JavaScript scripts to automate some of my work. Thanks