I see that the script deletes the registry keys, thus deleting the printers from the printer list.

How does this compare to the delPrinterConnection ("\\Server\Printer") command instead?
Are they both doing the same thing?
How would you go about delete Local TCP/IP Port Mapped printers?