18 Pa.C.S.A. §310.  Military orders.

It is a defense that the actor, in engaging in the conduct charged to constitute an offense, does no more than execute an order of his superior in the armed services which he does not know and cannot reasonably be expected to know to be unlawful.