It's a criminal court. The judge sentences him.

If you want to try for commitment, try speaking with "Community Mental Health" for your county.