I don't use this script anymore, because AMD software: adrenalin edition has the option to do this. I think this is a recent addition, or I just never saw it before.
Autohotkey script to change the screen orientation with alt gr + arrow keys. This was already a feature on Intel systems, but not for AMD.
For some reason the brightness used to change when I used the script, but then suddenly that issue was resolved