(e)"commanding officer" means a Commandant or any officer for the time being in command of the unit or any separate portion of the Force to which such person belongs or is attached to and discharging his functions under this Act or the rules made thereunder;