Request for Lg onScroll Control with AppleScript

Hi there,

I am utilizing an LG 43ud79-b monitor and to control the display brightness I need to either use the external remote or control via software OnScreen I was wondering if someone can help point me in the direction to utilize AppleScript, JSX, or some form of a scripting language to allow for direct interface with the application in the background to update the brightness.

Any help would be appreciated.