We will tell you the best method
FIX "Windows Script Host Error" in Windows 11/10 (2023 Updated)
Missing system files and corrupt data can cause Windows Script Host errors, which can prevent some applications and startup programs from running. Let’s look at ways to fix them.
It should be noted that an incorrectly or poorly configured script file can also cause a script host error. Since such errors are rare and do not require any intervention on your part, we will focus on script host errors that prevent even valid scripts from running on your PC.
The Windows Script Host simply provides an environment in which scripts can be executed. Most users will probably never encounter its functionality, as it is primarily intended for automating administrative tasks with batch files.