If any railroad company neglects or refuses to comply with the provisions of the General Railroad Law or with the rules and regulations prescribed by the commission within the limits of its authority, the company is subject to a writ of mandamus, to be issued by any justice of the Supreme Court or circuit court judge, upon application of the Office of Regulatory Staff, to require compliance with the laws or the rules and regulations and failure to comply with the writ of mandamus shall be punishable as for contempt. And for any wilful violation of any laws or failure to comply with the requirements of the rules or regulations the court may award costs and counsel fees, on the return of the writ and after due deliberation thereon, as may be just.
S.C. Code § 58-17-110