It was just a guess since none of my scripts have quotes around the value type. \:\)

I just used the script I posted above, changed from a default dword value to the given value and added another depth layer to the example I provided in the script. It created it just fine. If that isn't working for you, you may have other problems.