(a) Executors and administrators may be garnished for debts due by the testator or intestate to the defendant and may have process of garnishment in their representative character.
(b) Executors and administrators may be garnished for debts due by the legatees or distributees, but no judgment can be entered against them until a settlement of the estate, unless they assent to the legacy or admit assets to pay the amount claimed or some portion thereof out of the distributive share of the debtor.