vtysh_wrapper.sh passes its arguments unquoted through echo, so whitespace and glob characters are mangled before they reach vtysh. The script also uses declare -a, which is bash-only and not valid in a /bin/sh script.
Fix: quote "$*" and drop the unused declare.