Clerks of courts, judges, magistrates, notaries public, referees, and any other public officer or agency so empowered by § 1-26-19.1 or otherwise authorized by law in any matter pending before them, upon application of any person having a cause or any matter pending in court or before such agency, officer or tribunal, may issue a subpoena for a witness or witnesses, or for the production of books, papers, documents or tangible things designated therein pursuant to the provisions of §