Find currently used display profile on Monterey

I’ve been searching all morning for a method to find the color profile currently used by each connected display. We’ve been using the below Image Events call but running this on OS Monterey is returning “missing value”.

tell application "Image Events"
   tell displays to set {cnt, dName, sProfiles} to {count it, name, display profile}
   tell its display "Display 1"
       set thisProfile to display profile
   end tell
end tell

Does anyone know of a different method to find this info in Monterey? system_profiler only has display name/type info.

And we want to avoid UI calls so that Accessibility permissions do not need to be provided.

Posted on another forum and got a solution so will post here too. This does the trick to get the main display’s color profile on Monterey:

use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions

tell (current application's NSScreen's mainScreen())
   set displayName to localizedName() as text
   set colorSpace to (localizedName() of colorSpace()) as text
end tell

return {Display_Name:displayName, Color_Space:colorSpace}