(1) Any person subject to this code shall be punished as a court-martial directs when he or she, while in the hands of the enemy or any hostile force:
(a) For the purpose of securing favorable treatment by his or her captors, acts without proper authority in a manner contrary to law, custom, or regulation, to the detriment of others held by the enemy or any hostile force as civilian or military prisoners; or
(b) While in a position of authority over prisoners maltreats them without justifiable cause.