So we have temporary custody orders because the jurisdiction I filed in decided they wanted to keep the divorce, but custody belongs where the children go to school and where I moved from. We were in court for the first time since I filed for my ex parte petition to get custody of the children because ex, among other issues, doesn't want them or take care of them. The court ignored everything I gave them and gave ex full custody with every other weekend for me. I asked for 50/50 alternating weeks when school ended and they refused and scoffed at the fact that I would even ask. They also ordered our teenager, who lives with me, to visit with ex- a terrible mistake. They vacated upcoming mediation and hearing, and we have to file new RFO and start over in the new jurisdiction.

Weekend #1, teen says he doesn't want to see ex. Ex doesn't show. Weekend #2, teen made it a whole hour with ex before ex dropped him off at our adult daughter's house for the weekend... never informing me anything was amiss, and I show up after a 45 minute drive to no kid at the exchange. Weekend #3, ex doesn't even make it home and turns around half way. I meet them back at my house, all 5 kids are hysterical, including the teen, and don't want to go back. PD talks to ex and says they consented to me having the kids "for 2 weeks" until their weekend again.
Sunday night ex is inexplicably at my house to pick up the kids claiming PD told them to come then. By the time I get back home, they are gone, and don't contact me for the rest of the evening. Kids stay with me again.
This morning, 15 minutes before school, ex messages me to make sure I get the kids' projects completed this week and turned in. Huh? Am I keeping them now or?
By noon ex messages me that they are picking up the kids after school and keeping them for the week "per the court order".
This evening, ex says they are bringing the children back to my house to stay with me.

This is what happens when the court gives an unstable AF parent control of the situation. Myself and the 5 kids are on a rollercoaster from hell, no ability to plan or schedule anything, never knowing when ex can't handle the kids and they'll show up at my house or when ex will decide they've had enough of "extrajudicial agreements" and is going back to the court order.

My attorney needs to hurry TF up with our RFO. At this point I'm sending them nearly daily narratives of the BS we're all going through. I call the children every morning and every night when they're not with me and they cry about how they don't want to be there and are done with ex. I go through bouts of intense anger, to intense frustration, and immense sadness. Nothing like being bound to sit idly by and do nothing while your children suffer at the hand of an empowered walk-away parent who won't just... walk away.

Who's dealt with this type of situation and what worked to fix it, other than waiting out the system in the gym?