You need to take care of quote escaping all the stuff that could mess things up. Like this:
"do shell script \"/usr/bin/fscanx --pdf /scandata/\"" & Funeral::Last Name
Edit: Sorry I think trying to be too quick
"do shell script \"/usr/bin/fscanx --pdf /scandata/" & Funeral::Last Name & "\""
If the do shell script parameter should be all in quotes, close it of with a quote
Thank you !!