AFAIK, "involuntary commitment" DOES, in most states, involve some or other judicial process.
In California a police officer can place a person against their will into a psychiatric facility for 72 hours if the officer believes that the person is a danger to himself or others. After the 72 hours, a doctor’s evaluation is required to extend the hold. There is no appeal process. When should the person be listed as incompetent to own/possess a firearm? Are there any statistics of stature that actually show that people placed in mental institutes are thereafter incompetent around firearms, or are we continuing a thread of mass hysteria here?