`exec puppetdb "${subcommand}" "$@"` -- the quoted `$@` ensures that parameters with whitespace are preserved correctly.