If a driver fails or refuses to comply with the requirements of a police officer or qualified Commonwealth employee given pursuant to this title, the police officer or Commonwealth employee shall have authority to take the vehicle into temporary custody for the purpose of inspecting, testing or weighing the vehicle, its equipment, documents or load. In addition to any fine or penalty attributable to the weight, inspection, test or other offense, any driver who fails or refuses to comply commits a summary offense and shall, upon conviction, be sentenced to pay a fine of $500. Any costs incurred in weighing, testing or inspecting shall be paid by the driver to the person or agency incurring the costs or to the issuing authority for payment to the person or agency incurring the costs.
75 Pa.C.S. § 6311