S.C. Code Ann. § 16-3-1840
As a condition of bail, a magistrate may order a defendant charged with harassment or stalking under this article to undergo a mental health evaluation performed by the local mental health department.