Feature parity - Plugin data on layer nodes in PS

How would you set pluginData on a Layer?

There’s no direct correlate for this XD API in Ps. The closest you can get is the XMP metadata, but this is specific only to the document. If you search the form for XMP you should get some examples—but it’s generally nontrivial.