For one, I typoed.

Shell #ShellCMD

should be:

Shell $ShellCMD


Second, it does not send it to a var, it sends to a file defined by the $file var.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.