Programmatically load transform apply to image and then save

This post should help: Slicer batch processing question (--no-main-window --python-script)

If you still have questions then let us know.