Is there any way to change the PWM on an xbee3 without changing duty cycle in XCTU

I would like to use the java script code to change the duty cycle of the pwm on the xbee3 instead of having to set it in XCTU. This change in duty cycle would be based on changes in voltage of a potentiometer, and would adjust the speed of a motor. Is there any syntax that can do this in java other than. Basically can i change IOValue to something other than high/low

remote.setDIOValue(LINE, IOValue.HIGH);
remote.setDIOValue(LINE, IOValue.LOW);

You could try to use the PWM Micro Python sample app in PyCharm and the micro python sample library.