HELP! Stuck on workflow to select file then pass to terminal

Hello all I was hoping someone would be able to give me a hand with a little automator workflow I am trying to build.

What I am looking to do is select a file in finder then pass it through the terminal to add some metadata to it.

This is what I have so far:

  1. Ask for Finder Items (from here i can select the file i want)
  2. New Text File (this is so I have a log of files that I have to run through this workflow)

Steps 3 & 4 are here because it seems that when you try to just copy the output of Ask for Finder Items to the clipboard it doesnt properly format the text with the file directory (ie /Home/folder/file is pasted to the clipboard as :Home:folder:file)

  1. Get Contents of TextEdit

  2. Copy to Clipboard (this will probably not work once i have processed more than one file and the text file has multiple entries)

  3. Run Shell Script (this is where I am stuck)

What I am unsure of here is a couple of things:

  1. How can i pass what i just copied to the clipboard into the shell script (or if it is even possible)?
  2. Should I do the shell script via AppleScript (if so i will have to start asking some questions in the applescript forum)?

If anyone can help me at all i would be forever greatfull!!!