When an indictment shall be found against a corporation, a summons shall be issued against it, by its corporate name, to appear and answer the indictment, which summons may be executed as a summons against a corporation in a civil suit; and upon the summons being returned executed, the corporation shall be considered in court, and appearing to the indictment, and the court shall, unless the defendant do so of its own accord, cause an appearance for it to be entered of record; and such proceedings may then be had thereon as if the corporation had appeared and pleaded thereto; and if the corporation be convicted on the indictment, the court may pass judgment thereon, and cause process of execution to be issued against the goods and chattels, lands and tenements of the corporation for the amount of the fine and costs which may be awarded against it, as on a judgment in a civil suit; and the sheriff shall proceed to sell the goods and chattels, and lands and tenements of the corporation on the execution as on an execution issuing against a corporation in a civil suit.