how to correctly wrap commands in bash
Build the command line
args=() args+=(--args --some-other args)
Then, pass it, with the correct quoting.
mycommand "${args[@]}" someotheroptions