(5)Field punishment shall be carried out within the unit to which the offender belongs or is attached so long as that unit is actually on the move, but when the unit is halted at any place where there is a provost-marshal or any other officer appointed by the commander of the forces or the air forces in the field to execute such punishment, the punishment shall be carried out under the orders of such officer.