Improper control of code generation allows an unauthorized attacker to execute code locally. This occurs when a user or script utilizes the `Invoke-WebRequest` function on an attacker-controlled URL; a specially crafted non-2xx HTML response is then parsed via MSHTML without a prompt, leading to the execution of an embedded script.