As far as I know, this is not such functionality. However you can use
adb shell input tap <x> <y>
to trigger a touch event. Unfortunately, such a code will not work autonomously, since the position of your settings on the screen depends on the device you are using.
Alternatively you can try
adb shell input keyevent <19|20|21|22>
to emulate cursor events, to select the parameter you want to change.
Finally you can use
adb shell input keyevent 66
to call the enter key. This should work on all devices that have the same settings in the settings submenu.
source share