Bash - How to pass arguments to a script that is read via standard input
After @ccarton's comment:
cat script.sh | bash -s - arguments
It's more portable than @Michael Hoffman's solution.
On Linux,
cat script.sh | bash /dev/stdin arguments
seems to work.