If in the case of a person of or over the age of 14 years who is convicted by a magistrates' court of an offence punishable on summary conviction with imprisonment—
the court may, instead of making a hospital order or dealing with him in any other manner, commit him in custody to the Crown Court to be dealt with in respect of the offence.
Where an offender is committed to the Crown Court under this section, the Crown Court shall inquire into the circumstances of the case and may—
The Crown Court shall have the same power to make orders under sections 35, 36 and 38 above in the case of a person committed to the court under this section as the Crown Court has under those sections in the case of an accused person within the meaning of section 35 or 36 above or of a person convicted before that court as mentioned in section 38 above.
The powers of a magistrates' court under section 14 , 16 or 16A of the Sentencing Code (which enable such a court to commit an offender to the Crown Court where the court is of the opinion, or it appears to the court, as mentioned in the section in question) shall also be exercisable by a magistrates' court where it is of that opinion (or it so appears to it) unless a hospital order is made in the offender's case with a restriction order.
The power of the Crown Court to make a hospital order, with or without a restriction order, in the case of a person convicted before that court of an offence may, in the same circumstances and subject to the same conditions, be exercised by such a court in the case of a person committed to the court under section 5 of the Vagrancy Act 1824 (which provides for the committal to the Crown Court of persons who are incorrigible rogues within the meaning of that section).