Claude Code integrates a new PowerShell tool

Friday, April 3, 2026

In the latest versions of Claude Code, there is a new preview tool that allows you to execute PowerShell commands directly instead of going through Bash. To enable it, you need to set the CLAUDE_CODE_USE_POWERSHELL_TOOL environment variable to 1.

So, for example, from a PowerShell command prompt, you need to launch Claude Code with the following command line:

$env:CLAUDE_CODE_USE_POWERSHELL_TOOL = "1"; claude

The problem is that Claude Code doesn't seem interested in PowerShell, it prefers Bash... You have to explicitly tell it to use PowerShell...

Well, I only set it up today, so we'll see how it goes. In any case, I'm glad to see that Anthropic is starting to take Windows users' needs into account.