Can i use python for automate my 3D reconstruction?

I use python for segments dicom files. and I want to use 3d slicer for the
3d reconstruction.
are 3D slicer has the possibility to be automated with a script code?
could it be direct from python (pycharm or jupter notebook) ? or I would need to open it in 3d slicer?
thank you for helping!

Please see these links:
Python scripts for common things
Using Slicer through JupyterNotebooks