Change HDMI settings using adb or Application API

Hi,

I would like to change dynamically HDMI display mode on Nvidia shield TV(not rooted) using adb tool.
I have already tried command like “adb shell wm size WidthxHeight” but it seems to only affect graphical resolution, I mean not physical resolution used on HDMI chip.

Can anyone tell me if this is possible?If yes, how to do it? Thank you.

Using adb is my primary choice because it doesn’t require a lot of setup/development.
However, if it’s not possible to do it using adb on a non rooted device, i’m open minded about other solution.

A naive approach would be to use KeyEvent to navigate in the menu and change HDMI settings but it will be nearly impossible to guarantee that code will always match menu layout, especially available video format(depends on connected monitor).

Thank you in advance for any help.