Updated script to support passing in a JMX port variable.