Try a [
Clean Boot] and see if the script error still shows.
Important: Read the directions carefully on how to perform the clean boot.
Be sure the Hide all Microsoft services box is checked. Do not disable the Microsoft Services. There are basically 2 steps, disable the start up programs and disable 3rd party services (not the Microsoft services), then reboot and see if the error still pops up.
If the problem disappears while in clean boot, then it's one of the programs that you disabled for the clean boot that was causing the problem. Re-enable the programs/services a few at a time with each reboot until you discover which program is causing the error.