{"version":"2.1.326","anchor":"powershell-alias-shadow-check-with-an-env-opt-out","canonical_anchor":"powershell-alias-shadow-check-with-an-env-opt-out","heading":"PowerShell commands get an alias-shadowing check and a hardening preamble","tier":"notice","area":"PowerShell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/powershell-alias-shadow-check-with-an-env-opt-out","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### PowerShell commands get an alias-shadowing check and a hardening preamble\n\nClaude Code can now spot PowerShell functions that reuse an alias name, and `CLAUDE_CODE_DISABLE_POWERSHELL_ALIAS_SHADOW_CHECK` turns that off\n\n**Unclear.** What Claude Code does when it finds a function shadowing an alias is not known.\n\n**What**\n\nClaude Code has a new check for PowerShell scripts. It looks for a script that defines a function with the same name as an existing alias, which is a short name that already points to another command. The check runs behind a server-controlled switch, with a safe fallback.\n\nYou can turn the check off by setting the environment variable `CLAUDE_CODE_DISABLE_POWERSHELL_ALIAS_SHADOW_CHECK`. An environment variable is a named setting you give a program before it starts.\n\nA second server-controlled switch adds a short preamble in front of PowerShell commands. It points `PSModulePath` and `PATH` at PowerShell's own install folder and sets a trap for errors.\n\n**Why**\n\nBoth changes affect how Claude Code reads and runs PowerShell commands. If the alias check gets in your way, the environment variable lets you opt out.\n\n- Area: PowerShell\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}