I know how to execute remote Bash scripts like this:
curl http://example.com/script.sh | bash
or
bash < <( curl http:
Other alternatives:
curl http://foo.com/script.sh | bash /dev/stdin arguments bash <( curl http://foo.com/script.sh ) arguments