Command Undead probably actually suffices for the basic function of program undead - it has the right kind of stuff (you have to give a verbal command not telepathic, etc) and the commands have to be simple if the undead isn't intelligent. I guess Program Undead would be a higher level version that lets you put in stuff like if statements, password checks, etc - with Program Undead you could make a non-sentient undead resist Command Undead for example, or even pretend to go along with it and then attack the person when their back is turned. Maybe make it a 5th level spell, instantaneous duration (so it can't just be dispelled, you're fundamentally rewriting the nature of that particular undead).
For Constructs, you could have a similar breakdown. A low level spell that can basically get instructions into a Construct that is primed to receive instructions (which could be done as part of the crafting process), and a high level spell to basically re-flash the firmware.
If the 'actually programming' spells are high enough level, this creates a fun sort of middle range where someone might want to dabble in making undead or constructs but isn't quite good enough to secure them, even against a lower level apprentice, and hijinks ensue...
True!It occurs to me that this is a stealth buff (heh) for classes that can go book-diving for lower-level versions of spells, like... Archivist and Artificer?