The Practice Room / Get to Know Your Computer / Episode 6
PowerShell or Command Prompt: where do I paste this?
The install page gives you two lines and does not say which window you are standing in. Read the first two characters of the line you type on, and you know.
Why the install page gives you two lines
You want to install Claude Code on Windows, and the page hands you two lines rather than one. One is for a window called PowerShell. The other is for a window called Command Prompt.
They look alike, they sit in the same menu, and they do many of the same jobs. They are still two different programs, and they read commands differently. The page does not tell you which one you opened, because it cannot see your screen.
The two character test
Look at the line where you type, before you type anything. If it starts with a P and an S, you are in PowerShell. If there is no P and no S, you are in Command Prompt. That is the whole test.
Then keep the pair together. P and S at the front takes the irm line. No P and no S takes the curl line.
Paste the wrong one and the window tells you so
What a mismatch looks like
- PowerShell's line in Command Prompt: irm is not recognized
- Command Prompt's line in PowerShell: the token and and is not a valid statement separator
- Neither line is wrong, and nothing is broken
What to do about it
- Read the first two characters of your prompt
- P and S at the front, use the irm line
- No P and no S, use the curl line
Both messages mean one thing. You are standing in the other window.
Do it yourself
- Open whichever terminal window you already have in front of you.
- Look at the start of the line you type on, to the left of the cursor.
- Find the first two characters. They are either PS, or they are a drive letter such as C.
- PS means PowerShell, so copy the irm line from the install page.
- No PS means Command Prompt, so copy the curl line.
- Paste, press enter, and the install just runs.
Check yourself
Answer each before you open it.
How do you tell the two windows apart?
Read the first two characters of the line you type on. PS means PowerShell. Anything else means Command Prompt.
You pasted a line and got 'irm is not recognized'. What happened?
You put PowerShell's line into Command Prompt. Nothing is broken. Either open PowerShell, or use the curl line instead.
Is one of the two lines the better one?
No. They do the same install. They are written for two programs that read commands differently.
When it goes wrong
Your line does not start with PS or with a drive letter. You are probably in Windows Terminal, which is a window that can hold either program. Look at the name on the tab instead, or open the dropdown beside it.
Both lines fail the same way. That is not a shell problem. Copy the line again from the install page, because a line break landed in the middle of it on the way across.
Words used here
What is a terminal and why do AI tools use it • What is Claude Code and is it free
Go deeper
Microsoft's own documentation keeps separate pages for PowerShell and for the Windows Command shell, and comparing the two opening paragraphs shows how different the two programs really are.
What she says in the film
You want to install Claude Code in your terminal, on Windows. The install page gives you two lines, not one. One line is for a window called PowerShell. The other is for a window called Command Prompt. The page does not tell you which one you are standing in. They look alike and they do many of the same jobs, but they are two different programs, and they read commands differently. Here is how you tell. Look at the line where you type. If it starts with a P and an S, you are in PowerShell. If there is no P and no S, you are in Command Prompt. That is the whole test. PowerShell takes this line. Command Prompt takes this one. So, keep the pair together. P and S at the front, the irm line. No P and no S, the curl line. Now the mistake. Put PowerShell’s line into Command Prompt, and it answers, irm is not recognized. Put Command Prompt’s line into PowerShell, and it answers, the token and and is not a valid statement separator. Nothing is broken, and neither line is wrong. You are standing in the other window. So read the first two characters before you paste. Two characters, and the install just runs. Subscribe. No permission required.
That is the last episode of Get to Know Your Computer so far. New ones land as they are filmed.
Book a session and we do it together on a call.
Book an hourAsk what did not make sense
Comments go through our own form and are read before they appear. Links are not allowed; describe it in words.
More from Get to Know Your Computer.

What a terminal actually is
Every app you use is a picture of your computer. The terminal is the computer with the picture taken off.

Open one on Windows and Mac, and type your first word
On a Mac press command and space. On Windows use the search box on the taskbar. Type terminal, press enter. Th…

This is your file system
You already know this screen. Every one of those folders is a room in your computer, and the terminal is anoth…
Get the next walkthrough.
One email when something goes up. The argument, the film and the term, nothing else. One click to leave.
Have a question now? Ask Mstimaj, she knows the archive.