When it appears by affidavit or otherwise that a writing or document in the possession of any person not a party to the matter in controversy is material and proper to be produced before the court, or any person appointed by it or acting under its process or authority, or any such person as is named in section one of this article, such court, family law master, judge or president thereof may order the clerk of the said court to issue a subpoena duces tecum to compel such production at a time and place to be specified in the order.
W. Va. Code § 57-5-4