{"version":"2.1.337","anchor":"powershell-flag-added-to-a-hook-command-line","canonical_anchor":"powershell-flag-added-to-a-hook-command-line","heading":"PowerShell users get an explicit --powershell flag on a generated hook command","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/powershell-flag-added-to-a-hook-command-line","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### PowerShell users get an explicit `--powershell` flag on a generated hook command\n\nWhen your shell setting resolves to PowerShell, a command Claude Code generates for hooks now ends with `--powershell`\n\n**What**\n\nHooks are commands you set up to run automatically at certain points while Claude Code works. When your shell setting resolves to PowerShell, the Windows command shell, a hook command line that Claude Code generates now has `--powershell` added to the end. A flag is an extra option added to a command. Before, this flag was never added.\n\n**Why**\n\nCommands Claude Code builds for PowerShell users now say outright that they are meant for PowerShell.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}