If the respondent is not the prevailing party, the court may assess against the respondent all direct expenses and costs incurred by the prosecutor or other appropriate public official and law enforcement officers under section 5455 (relating to role of prosecutor or public official) or 5456 (relating to role of law enforcement).