I think it is convoluted and hard to troubleshoot. I have an FAQ Topic: Proper use of quotes that suggests one assemble the shell command as a string. This way the string may be printed to the console so WYSIWYG. You may want to turn on WrapAtEOL to properly display a long line.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.