How does court order work?

I’m trying to coparent with my child’s father but it’s not working! What’s the first step I take to go through courts on coparenting?