I believe you said that the script portion worked, but you wanted to test the statement from the command line. By changing the tick marks, the statement ran on my system.