With the approval of the governing body, or when directed by them, institute in the name of the municipality any appropriate action or proceedings to prevent the unlawful erection, construction, reconstruction, alteration, repair, conversion, maintenance, occupancy, or use of any building, structure, or land in order to restrain, correct, or abate such violation, so as to prevent such occupancy or use of any building, structure, or land, or to prevent any illegal act, conduct, business, or use in or about such premises and to do all things necessary to pursue the prosecution of said violation(s).