C# Script to Export to Colored Layers from Grasshopper without Baking

The most promising approach I saw in this thread was a post from @Bernd_Möller suggesting the Rhino.FileIO namespace. I started to work with it in Python but am too much of a dilettante in both Python and the Rhino APIs to have fun at it, so I quit. One of his links went to this thread where @Baris was using it a year ago to “batch convert some files from R7 to R6”: