I found it. By including + "\" + $ValueName, i had gone too far and it was trying to write a reg value to a reg value. I took that off and actually wrote the value to the key instead.
_________________________
Josh