That won’t work when you have more than one argument or argument(s) that have embedded spaces, such as md5sum /sbin/s* Try the following:

#!/bin/bash
/sbin/md5 -r “$@”