(a) When an action is commenced to compel performance of a public act or duty by a political subdivision of the Commonwealth, it shall be sufficient to name as defendants such officers in their official capacities as are concerned in the act or duty.(b) When an action is commenced against a corporation or similar entity, it shall be joined as a defendant with the particular person or body of persons concerned in the performance of the act or duty.(c) When a public act or duty is required to be performed by an executive or administrative department, by a departmental administrative board or commission or by an independent administrative board or commission of the Commonwealth or by a board or body of a political subdivision, it shall be sufficient to name the department, board, commission or body as the defendant without joining as a defendant the head of the department or the members of the board, commission or body.