I see that HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts is Read-Only for Users. You do run this script with Admin privileges, don't you?