Upvote:4
ESTA is merely travel authorization.
What you wish to do is extend your stay by 90 days.
If you wish to do this using the Visa Waiver Program, you will need to leave the country, and re-enter under the VWP conditions (this will usually require an ESTA).
You can apply for an ESTA within the US, however, you still need to re-enter the county under the Visa Waiver Program.