I don't understand your action. Normally if you was to do a shadow and highlight adjustment all you need is a single step action your step 2. Then you batch the action using menu File>Automate Batch or menu File>Scripts>Image Processor...
How does your Action know what image to open in step 1? What does the action open?