An administrator with the will annexed, appointed instead of an executor resigned, and all administrators with the will annexed, shall have the same power and authority as the executor had by the will of the testator, and may sell land, if the executor possessed that power.