What is the role of the executor or administrator?

The executor (named in a will) or administrator (appointed if there is no will) files the probate petition, manages estate assets, notifies heirs and creditors, pays debts and taxes, and distributes assets according to law.