How to rotate multiple photos with one command?

Hi is there a way I can select multiple photos and rotate them together? Idealy I'd love them rotate and overwrite the original files. Right now with my command, I can only make the last photo rotate. Thank you.

I think you need to move the rotate inside the "For each loop"

You also need to move the Switch action inside the For action loop.

Totally Worked Thank you so so much!