If both command posts are out of action, a subordinate command post steps up to command the formation; in the case of an infantry battalion, one of the company command posts would step up and take charge.
If both command posts are out of action a subordinate command post "steps up" to command the formation. In the case of an infantry battalion one of the company command posts would step up and take charge.