This is based on working with parrots of all kinds at two different pet stores and on living with a double yellowheaded Amazon parrot for over thirty years. I do not claim to be an "expert," and I very much doubt that such a person exists. There may be people with more experience than I who suck at working with parrots and people with far less experience who are much better at it than I am. Self-proclaimed "experts" usually have closed minds, so if someone wants to modify what I recommend or even recommend something completely different, that's fine. Do what makes the most sense to you and what is best for Esmi.
First of all, use this time to get acquainted with Esmi. Find out what her favorite treats are and withhold them from her regular diet for training purposes. Make sure that training treats are fairly small so she can gobble them up quickly. Chop them into pieces if you need to.
Your Amazon is territorial about her cage. As long as she is in or on that cage, you will not make any progress working with her. If she is looking down on you, she will feel even more emboldened to defend her territory. This is her turf! You will need to take her to another location to work with her.
If she's a confident bird, work with her on a perch that is below your eye level in another room of the house out of sight of her cage. I'm not going to go into how to get her there right now. Hopefully, she'll step up on a perch without mauling you. If not, well, that's another discussion.
Once she's in a different room, perched below eye level, you'll discover her attitude has changed. As long as she doesn't seem afraid, go ahead and work with her. I'd start by telling her what a good bird she is and handing her a treat. Watch her body lingo at all times.
You'll have to decide what your "bridge" is going to be. A lot of people use a clicker. I simply use the word, "Good!" in a pleasant voice or excited voice, depending on the bird's mood. My opinion: You're not always going to have a clicker on you. When your bird does something right, you don't want to spend precious time fumbling for a clicker. "Good!" worked very well for my DYH.
The bridge word, "Good!" (or clicker), tells the bird she has done the right thing and is about to get a treat. If she is relaxed and will take the treat without mauling you, always follow up quickly with a reward.
Right now is not the best time to have her on your shoulder. Hopefully, her last human didn't allow her to go straight to the shoulder. If you find that's the case, we'll need to have another discussion.

When you ask her to step up, hold her on your hand with your thumb between her and the rest of your arm as a psychological barrier to keep her from running to your shoulder. Keep your elbow pointed down at a fairly steep angle so it isn't easy to get to your shoulder.
1. Say, "Up!" or "Step up!" (Choose one and stick with it.)
2. When she steps up, say, "Good!" or use the clicker.
3. Follow up immediately with a reward.
Then:
1. Say, "Down!" (or your command of choice)
2. When she steps down, say, "Good!" or use the clicker.
3. Follow up immediately with a reward.
4. Repeat
Make this fun. Be interactive. Talk with the bird, but don't get her too wound up. You don't want to send her into Amazon overload. Figure out how she's feeling. Reassure her if she's a bit shy. Use a more commanding voice if she's feeling a tad too confident. Read the section on Amazon body language and adjust your actions and tone of voice accordingly. Your relationship is very new and you want to start it off right.
You'll want to establish the "up" and "down" commands as the basis of much of your training. Make the sessions short, but meaningful, and then return her to her cage. I'm not sure how many times a day you should give lessons. I would let her tell you through her actions. Three sessions of less than fifteen minutes is probably sufficient. If she seems tired or overwhelmed, back off. You're beginning a marvelous dance with this creature. You have to pay attention to what she's telling you.
As you build this relationship, you can slowly move the training perch closer to her cage, first in the same room, then closer and then closer. You'll have to watch her reaction to gauge when you can take the next step. Eventually, you want to be able to transfer the "up" and "down" commands to a perch inside her cage: one below your eye level.
At some point, you want your bird to tolerate servicing her cage and picking her up from any perch in or on her cage. Always move training sessions to a training perch away from her territory. In this way, you can respect her space yet still expect her to step up when you ask.
With the up and down commands, you should get to a point where the bird doesn't need a treat. At first, reward every time, then frequently, less frequently, etc. With Gabby, I phased treats out pretty quickly, but he was very young. An older, territorial bird may need to be paid in treats a bit longer. (I still gave Gabby treats when he did tricks. He
really loved performing, but always did his tricks better when paid in sunflower seeds or chopped nuts. I miss him so much.)
If someone has an addendum or an idea that works better for your bird, use it. It's all about the bird.