I tried again to go through the same steps and wasn’t able to reproduce the problem. RestoreLayerState doesn’t seem to exist as a Rhino command or as a help topic, and yet that dynamic help showed up.
Thanks for reporting.. RH-96919 Dynamic Help shows raw AccessDenied error for commands with no help topic
Some detective work on the mystery — RestoreLayerState is a real command, just hidden. The Layer States panel runs it behind the scenes when you restore a state, which is why dynamic help picked it up but you couldn’t find it afterwards. There’s no help topic for it, and the docs server returns that raw error instead of a proper “not found” page.