FFMPEG via Shell Script

I found an AppleScript solution here on the forum to wait until it was all copied.
05

But from there I have tried to put up a For Each Item in Collection to run through all the files in the folder and still it only manage to finish some of the files, not all, I think I have misunderstood the For Each functionality

12