If a disagreement occurs with the board of auditors and any official it is required to audit, the board of auditors may petition the court of common pleas to appoint an attorney to represent or advise the board of auditors on the matter. The court shall not appoint an attorney unless reasonable effort to reach an agreement has been made and only after the board of auditors has given notice to the official or the board of supervisors of its intent to petition the court for the appointment. The board of auditors, with the agreement of the board of supervisors, shall determine the compensation of the attorney. If the dispute results in litigation or if the board of auditors and the board of supervisors cannot agree upon the compensation to be paid to the attorney, the court shall establish the compensation for the attorney appointed for the board of auditors. The compensation for the attorney shall be paid out of the general township fund.
53 P.S. § 65906