Because there is no "relationship" between the two of you, unfortunately you can't avail yourself of the family court. I would suggest, however, that you contact the police and file a report. You should also show them all the text messages and give them as much information as possible. If they make an arrest the criminal court will issue an order of protection on your behalf.
You can go directly to your local precinct and make a complaint or you can go to the District Attorney's Office, Complaint Bureau, and make a complaint there. Or you can go to Family court.
My suspicion is you can file for an order of protection against your husband/former husband. These orders prohibit third party contact. Then, when the honey accosts you again, you trigger the OP against him.