i see two problems..
1 - the smartGroup variable set includes a value that has spaces. i don't see a close double quote.
2 - the reference to the smartGroup variable in the blcli command needs to be enclosed in double quotes if the value has spaces.
Thanks Bill! That's working now!