Thanks for the advice, but a brute force approach has worked… I set the prefs I needed, did a before & after to determine which domains and key values were modified, and am successfully using defaults to manipulate the code without having to understand it in any detail.
It made for a clumsy programming experience, but it’s elegant enough in practice.