If the value of sqlsvcpassword contains a $ character, it isn't passed correctly. I fixed it in my copy by changing the way it is passed to be similar to how the sapwd is passed ie:
'"<%= @sqlsvcpassword %>"'
But I'm sure I broke the support you coded for your AD tool.