The writ shall be directed to the person having custody of or restraining the person on whose behalf the petition is made, and shall command him to have the body of such person before the court or judge before whom the writ is returnable, at a time and place therein specified.
A.R.S. § 13-4125