You and your wife have children. The two of you will need to make your best efforts to try to discuss and resolve the issues relating to the children. There are many issues to discuss.
I will discuss the various ways that you and your spouse can work through these child issues without going to court. You will avoid the stress and costs, both emotional and financial, of a custody battle in court. Going to court to resolve your custody matters will result in a judge who is a stranger to your family and kids, and who does not know the dynamics of your family or the specific needs of your children making critical decisions affecting your children until they are emancipated or graduate from high school. The other negative aspect of going to court to resolve custody issues is however much you try to shield your kids from the process, they will know you are in court fighting over them. This can cause your children emotional trauma, stress, anxiety, depression, uncertainty, and even self-blame and guilt that they caused your separation.
The two of you should try to sit down together and discuss children issues to try to reach agreement. This is a good option because you and your spouse know your children better than anyone else. You know their personalities, needs, desires, priorities, mental health, physical health, intellect, social issues, school performance, behavioral problems, goals, friends, extracurricular activities, to name just a few. If you are able to sit down with your spouse and have a productive, civil discussion on these matters and write down everything you discuss and agree upon, you will have done a great service for your kids. You will have done it in a cooperative manner. And will have saved money by not having the employ professionals. On the other hand, meeting and working with your spouse may be counterproductive and cause further discord.