The Bean Shell plugin allows one to write custom Java code to achieve what other process tools may not.
Script in Java.
See Bean Shell Programming Guide for code example.
Figure 1: Bean Shell for Process Tool Properties