court. Powers of the guardian subject to approval of the (a) Upon order of the court, after notice and hearing and appointment of a guardian ad litem, the guardian may: (i) Commit the ward to a mental health hospital or other mental health facility; (ii) ward: provided: Consent to the following treatments for the (iii) (A) Electroshock therapy; (B) Psychosurgery; (C) Sterilization; (D) Other long-term or permanent contraception. Relinquish the ward's minor child for adoption, (A) Notice of any hearing was given to the ward and the legal or putative father; and so ordered. (B) The ward attended the hearing if the court (iv) Execute any appropriate advance medical directives, including durable power of attorney for health care under W.S. 35-22-403(b) and an individual instruction under W.S. 35-22-403(a).