Draftsight in headless mode

We have a requirement where we would like to perform some actions in Draftsight, but in batch mode or headless mode. Does anyone know how we can do this?