(5)Without prejudice to the preceding provisions of this section, the power to make rules of court in relation to proceedings in the Court of Session brought by virtue of this section shall include power to make rules providing for the Secretary of State, either generally or in such circumstances as may be prescribed by the rules, to be treated as a party to any such proceedings and to be entitled