(a)any person who is convicted on a prosecution instituted in pursuance of section 242, or who is ordered to pay damages or restore any property in proceedings brought by virtue of section 244, may, in the same proceedings, be ordered to pay the said expenses to such extent as may be specified by the Court convicting such person, or ordering him to pay such damages or restore such property, as the case may be;