To create custom processing you can create a Python Toolbox and script. This video shows how to create a toolbox with a run through of example python code.