Python command line execution of Slicer functions

I am trying to use slicer to take in a batch of meshes and discretize those meshes into labelmaps for pyradiomics analysis. To do this I am working with using an anaconda command line and python to access each file, then somehow access slicers source code, and run the function to convert the mesh to a labelmap volume. I was wondering if anyone can tell me how to do this? Preferably in a step-by-step way?

For reference: