(a) If a personal representative or other person interested in the estate files with the court an affidavit stating that the affiant has good cause to believe that any person named in the affidavit has knowledge concerning or possession of any real or personal property or of any records, papers, or documents belonging to the decedent, or which affect his or her title to or rights in any property, the court shall have the power to cause the person to appear before the court and be examined on oath for the discovery of the same.
(b) Any person failing to appear when ordered or refusing to answer proper questions shall be adjudged guilty of contempt of court and punished accordingly.