If the accused is acquitted in a misdemeanor or ordinance violation case, he or she shall be discharged immediately. If the court, before whom the trial is held, finds and certifies in its minutes that the complaint was wilful, malicious, and without probable cause, the complainant shall pay all of the costs that accrued to the court, including the witness and jury fees, in the proceedings held upon the complaint.
MCL 774.1d