If the justice or referee determines the building, structure or premises that is the subject of the report of survey is unsafe or dangerous, such justice or referee trying the case shall immediately issue a precept directed to the commissioner authorizing the commissioner forthwith to vacate pursuant to section 28-207.4, if necessary, and to seal, secure, shore, or demolish and remove the unsafe building, structure or premises named in such report. The precept shall be effective for a period of three years from the date of issuance.