Which version of C::B do you use ?
I just tested it on windows (latest nightly) and it works as epxected.
When adding the custom variable, C::B asks me whether I want to quote it, because it contains strange characters, after clicking "Leave unquoted",the log shows the correct commandline (only the original quotes, that are parts of the variable).