I was searching for a way to achieve this by calling a keyboard hotkey and I have found this answer:
https://superuser.com/a/1489315
Would like to ask if anybody could help convert it to an AutoHotkey script
As the key data need to be modified in bytes I'm not sure how to do this with RegWrite etc.
Turn on/off windows night light by hotkey
Re: Turn on/off windows night light by hotkey
Bind the exe in the comments to a hotkey?