Ok, I've made the changes you suggested in the script and turned on bash debug.
here is the new error
Lee@main ~/sccripts
$ bash -x ./getdirections.sh "195+Broadway,+New+York,+NY" "10+market+st,+san+franciscoi,ca"
+ '[' -z 195+Broadway,+New+York,+NY ']'
+ '[' -z 10+market+st,+san+franciscoi,ca ']'
+ start=195+Broadway,+New+York,+NY
+ end=10+market+st,+san+franciscoi,ca
+ wget -t0 -o log -O - 'http://local.live.com/directions.ashx?start=195+Broadway,+New+York,+NY&end=10+market+st,+san+franciscoi,ca&units=mi&mkt=en-us'
+ strings
./getdirections.sh: line 14: strings: command not found
+ head -1
+ sed -e 's/new VE_RouteInstruction(/\n====/g'
+ grep ====
+ read line
+ count=1
+ '[' -n '' ']'
What environment are you using? *nix or windows?