Bash Pass Command To Function