Perhaps my example was too simplistic. By 'program' I meant create and then unleash an autonomous system that would not be subsequently changed. This is analogous to AnCap's or Libertarianism's non-aggression principle, which someone once created, but now it always stays the same. To 'run' the NAP program you just follow simple instructions. The 'programmer' would be some philosopher who probably died long ago.
In that case, the morality of the action would rest with whoever or whatever created the autonomous system. Since the autonomous system is autonomous, it is not a moral agent. But I can program a robot police officer to shoot the innocent or shoot in defense. The former would be moral on my part and the latter immoral. It matters not that the automaton then executes the operations amorally.
Any moral agent who followed Libertarian principles would be acting morally or immorally because they would be choosing to follow those principles. Any automaton who followed them would be acting amorally, however the creator of that automaton could be acting morally or immorally. There is no requirement that moral *principles* be incapable of reduction to algorithms. (And if there were, it would be almost impossible to come up with any moral principles at all. "Thou shalt not kill" couldn't be a moral principle.)
However, you inadvertently allude to another point: the morality of "just following orders" (just like a good, obedient soldier.) Arguably it's actually worse if a human blindly follows someone else's code, than a computer (or human body-part) where at least there's a responsible person in charge. Thus my earlier criticism still stands that these people are wrong in choosing not to think. They are abdicating responsibility for their actions, and couching their actions in terms of "being morally righteous because XYZ philosopher said so, here's the link".
It's terrible if a human *blindly* follows someone else's code. Humans are moral agents and are responsible for the choices they make. They aren't automatons. But there's nothing inherently wrong with following a moral code if one has determined, to the best of one's ability, that that code is in fact moral and they are willing to change things if evidence points otherwise.