Greetings everyone,
I had the same issue, 100+ images provided by a designer, using a mac.
I tried to run the batch right away, getting an error on every command.
Photoshop on windows, when running a batch, will try to run the DS_STORE files generated by a mac.
These are normally hidden in folders, so you'll have to have hidden files visible.
I had test_image_0001.jpg as the actual file i was trying to resize, but before it, was a ._test_image_001.jpg which was throwing photoshop for a loop.
Once i removed these stupid DS_Store files, the batch worked as it should.
I hope this helps!