Whenever a surplus arising from the sale of any property distrained for taxes, shall be claimed by any other than the person for whose tax such property was sold, and such claim shall be contested, either of the contestants may prosecute an action against the other, as for money had and received, and in such action the rights of the parties to such surplus shall be determined. For the purpose of such action the defendant shall be deemed to be in possession of the surplus in the hands of the treasurer, and upon the presentation to said treasurer of a certified copy of the final judgment rendered in such action he shall pay over the same to the party recovering such judgment, and no such treasurer shall be liable to any claimant of such surplus, the right to which is contested as provided in this act, until he shall have refused to pay over such surplus upon the production of a certified copy of the judgment as aforesaid. In any action brought pursuant to this section no other case shall be joined, nor shall any set-off be allowed, and if an execution issue on a judgment so rendered, it shall direct the costs only of such action to be levied by virtue thereof.
MCL 211.49