The cost of appearance of any such guardian ad litem or next friend, including compensation of counsel, shall be determined by the court and paid by the complainant, and execution against the complainant may issue therefor in the name of the guardian ad litem or next friend.