Process files through shell command with file path as argument.

Hi,

I am trying to run a shell command for each file selected using the loop function but it will always process the same file unless I select the other file in the second round.

Can this be automated in any way? So it would be something like a for loop.