OK, I got you, I guess I do that because so far it works for me. I would rather keep the lines as literal as possible without piecing them together with a bunch of "+" symbols. Maybe it's wrong, but as long as it works I probably will still do it.

I tried the code you gave me and that did the trick. Thank you! I still don't know why it wouldn't work without that code, but I guess it is because you can't have different data types in an array.

I tried removing the quotes from these lines:
Code:
$DN="CN=$cn,OU=MyCity,DC=MyDomain,DC=com"
$DN2="CN=$cn8,OU=MyCity,DC=MyDomain,DC=com"


But it caused the script to fail.
Thanks again for all of your help.