The psychiatrist will likely ignore the person's 'spiritual' aspects and focus on their physical and psychological well-being, via medication.
If he is court-ordered, there should be secular alternatives offered in addition to the AA option, as many state courts have ruled that AA constitutes a 'religious organization'.
See Maryland v. Norfolk (Md DistCt, No D713675 (1989), Granberg v. Ashland County (590 F. Supp. 1005 [1989]), and Griffin v. Coughlin (88 N.Y. 2d 674 [1996])
If he is voluntary, then he'll simply have to locate a secular program.