Further problems!
When I rebooted the machine, after a while, I noticed that Win Explorer window would no longer open. It would start and was running as I can tell from monitoring what tasks are running, but a window would not open. I tried rebooting, etc. but no change. Without an Explorer window, I am dead in the water.
So I was forced to do a Windows Restore (after discovering that my Acronis True Image backup for the C: drive was corrupted. Sigh. Lot of work for messing around with this script. I would recommend that you ensure you have good backups, just in case before playing with this thing.