There is a way to get the Mac OS name such as "Sonoma" etc, that @Martin came up with here.
It's the way I've been doing it, but a KM Token would be great.
For more information, see the wiki Searching the Forum for Answers section.