Upon complaint made on oath of the abduction or unlawful detention of a woman, or a female child for any unlawful purpose, a District Magistrate, Sub-divisional Magistrate or Magistrate of the first class may make an order for the immediate restoration of such woman to her liberty, or of such female child to her parent, guardian or other person having the lawful charge of such child, and may compel compliance with such order, using such force as may be necessary.