An application under section 39 or 39A is made by filing with the relevant court referred to in that section a document in writing—
(a) stating the grounds on which the application is made; and
(b) containing the information, if any, prescribed by the rules of court.