In the discharge of enforcement duties authorized persons shall have the right to enter any site, building or structure for the purpose of investigation and inspection. Such right of entry shall be exercised only at reasonable hours and only with the consent of the owner or tenant unless a written order from the Court has been issued.