There is a tutorial dedicated to the creation of custom processes:
https://neuroimage.usc.edu/brainstorm/Tutorials/TutUserProcess
The Scripting tutorial can help as well:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting
Is this what you were looking for?