NYC Charter § 437 Detail to attend court
The commissioner is empowered to cause some intelligent and experienced person connected with the department to attend any courts in the city in cases where there is need of assistance, who shall, to such extent as shall be permitted by the rules of the court, aid in proceedings pending in such courts.