Invert screen

With command-option-control-8 I can invert the screen but in a script this doesn’t seem to work. Ideas on how I can get this to work in a script?

tell application "System Events"
	keystroke "8" using {command down, option down, control down}
end tell

Hi,

this works

tell application "System Events"
	key code 28 using {command down, control down, option down}
end tell

Excellent!