The courts, or classes of courts which are prescribed for the purposes of making restriction of liberty orders are—
The High Court of Justiciary;
Any Sheriff Court;
Any Justice of the Peace Court when constituted by a stipendiary magistrate.