Those color names are correct. They originate from mistakes that were done many years ago, for example the grain/green thing exists due to the accidental double assignment of the char-code "Grn ".
There is no documentation on every single internal property of Photoshop that you can target via BatchPlay, however I started to create Typescript types for some stuff, where you can also see the ColorNames.
You can’t really directly mix BatchPlay and DOM code, but you can get the id from a layer object and then use it to set the target of the Descriptor that you put into the batchPlay function.