Here is a simple script called command.sh:
echo "I received: |$1|"
$ ./command.sh foo\
I received: |foobar|
Call your script as:
./command.sh 'foo > bar'
\ before newline you're merely breaking current command line and not really passing newline character to your script.
If you want to do it in single line then use: