The best way to maintain personal control over the outcome of your situation is to attempt a negotiated solution to the issues involved.
This can be done by sitting down directly with your spouse to work on an agreement or by hiring an attorney to negotiate a settlement on your behalf.
Then a comprehensive separation and property settlement agreement can be written that resolves all the issues that would otherwise be decided by the court.
You then have more control over the outcome.