In its order of commitment, said court may permit partial hospitalization or outpatient care, or if at any time thereafter the director shall determine such partial hospitalization or outpatient care to be beneficial to the person so committed, the same may be permitted by said court upon application by the director.
50 P.S. § 4406