Every court of record shall have power in any civil or criminal matter to issue subpoenas to testify, with or without a clause of duces tecum, into any county of this Commonwealth to witnesses to appear before the court or any appointive judicial officer. Subpoenas shall be in the form prescribed by general rules.
42 Pa.C.S. § 5905