Bash Script who perform 90/180/270/0° rotation on MacOS on top of Diplayplacer tool.
Please install first : https://github.com/jakehilborn/displayplacer
Each time the script is called it will increase display rotation by 90° The Script code can be copied as Services in Automator to be called by shortcut.