I'm recreating the Donkey Kong arcade game in Minecraft, and I want Kong to be facing a certain way the whole time, so I put this command in a repeating command block:
/execute as @e[name="Donkey Kong"] run data modify entity @s {Rotation: [180d, 0d]}
It does nothing; it doesn't even spit out an error message.