ok, I'm guessing you were in court today, and that's why this is all tumbling out in an all at once sort of way, yes?
Breath. There are ways forward.
I too had a very nasty experience at court - twat of a judge sat there literally saying he was talking off the top of his head and decided to give ex mid week overnights and alternate weekends - ie the "standard" level of contact - as he hadn't read any of the background. Arsehole gave ex an early christmas present with that, and a major problem to DD as it was always overnights that created further problems, and she'd barely had any contact before he ordered that.
But it all turned out well, so please start from the beginning.
How old is / are your DC?
What exactly has been ordered? Times, pick ups, drop offs?
Does your ex have parental responsibility?
Other than what your DC has said about running away and the lack of prior committed contact, are there any other welfare concerns?
Has this judge been involved in your case previously, or has he dropped in, crapped everywhere, never to be seen again?