5(1)On an application made—U.K.
(a)by or on behalf of a person recommended for deportation whose release was so directed; or
(b)by a constable; or
(c)by an immigration officer,
the appropriate court shall have the powers specified in sub-paragraph (2) below.
(2)The powers mentioned in sub-paragraph (1) above are—
(a)if the person to whom the application relates is not subject to any such restrictions imposed by a court as are mentioned in paragraph 4 above, to order that he shall be subject to any such restrictions as the court may direct; and
(b)if he is subject to such restrictions imposed by a court by virtue of that paragraph or this paragraph—
(i)to direct that any of them shall be varied or shall cease to have effect; or
(ii)to give further directions as to his residence and reporting.