police registered a case on the orders of the court