Drush not installing correctly
The error message suggests that the script you're invoking has embedded \r characters, which in turn suggests that it has Window-style \r line endings.

Try to install from other source or something