Try replacing
if [ $( ps -ef | grep wtrs | wc -l ) -gt "3" ]; then
with
if [ `ps -ef | grep wtrs | wc -l` -gt "3" ]; then
You're using the original Bourne shell, so try backquotes instead.
Or consider using #!/bin/ksh if it's installed and the original syntax above.
Peace
ZB
http://www.zazzybob.com