Make sure the sheet has a chance to open, so you probably need a Pause after the Command-P.
The Orientation is more tricky. I see it has an accessibility label, but not a title, so I will see if I can have Press Button look for that if it does not find a better match.
Since the sheet is an focussed window, you can use Click relative to top left or right corner of the window to click on the Landscape/Portrait buttons. Or you can use Click and Found Image.