Your script has DOS line-endings.
If you convert the line endings to Unix line endings, it runs fine:
$ tr -d '\r' < raw.php\?i\=VURksJnn > script$ cat script | bashTest scriptYou're not rootEnd test$
To start with, you save the downloaded wget'ed file locally, and run as bash filename. Because the following works for me:
bash filename
cat - | bash