How to get someone committed involuntarily:

READ THIS. The laws vary from state to state.

https://www.treatmentadvocacycenter.org/component/content/article/183-in-a-crisis/1596-know-the-laws-in-your-state  

Friend or loved one acting dangerously strange?  Take Action!