That was a bad text to send - you can't shame a wayward and have it work in your favor. All that judgment only comes across as controlling and she will further revolt.
However, nothing you said was untrue, and having sent the text, I don't see where an apology was in order, and that probably further weakened your position.
Realize that texting makes it far too easy to respond reactively without thinking. Stay away from texting. Always give yourself hours to respond to a text, if you even must respond, unless it's an absolute emergency.
And I trust that Bond's gonna tell you to get your focus off W, where you have no control, and get it back on you and your kids, where you do have lots of work to do.