Your script lists 300 files it’s about to delete, and the window scrolls on before anyone reads it.
Quick answer: to pause in Windows PowerShell until the user is ready, type pause or call Read-Host. Both wait for Enter. For a true “press any key” pause, use [Console]::ReadKey($true):
pause
$null = Read-Host 'Press Enter to continue'
$null = [Console]::ReadKey($true)
In this tutorial, we’ll cover every windows powershell pause option we tested in PowerShell 7.6 and Windows PowerShell 5.1, plus the cases where a pause fails or hangs.
What Is the pause Command in PowerShell?
It isn’t the Command Prompt command. It’s a tiny built-in function, and Get-Command shows its code:
$cmd = Get-Command -Name pause
"Command type: $($cmd.CommandType)"
"Definition: $($cmd.Definition.Trim())"
Output:
Command type: Function
Definition: $null = Read-Host 'Press Enter to continue...'
Both versions printed the same line. So pause is Read-Host with a fixed prompt: it waits for Enter, not any key. Like other PowerShell functions, it works in scripts and at the prompt.
What You Need Before You Start
Any Windows PC with Windows PowerShell 5.1 works; PowerShell 7 is optional. Save each example as a .ps1 file and run the PowerShell script in a console window, not the ISE, which Microsoft says can’t run interactive sessions.
Option 1: Pause With the Built-In pause Function
Drop pause between two steps. We ran this in a real PowerShell 7 window and pressed Enter at the prompt:
'Copied 42 invoices to C:\psfaqs\backup'
pause
'Continuing with the cleanup step'
Output:
Copied 42 invoices to C:\psfaqs\backup
Press Enter to continue...:
Continuing with the cleanup step

Read-Host adds the colon after the dots. Windows PowerShell 5.1 showed the same prompt.
Option 2: Pause With Read-Host and Your Own Message
Read-Host lets you write a prompt that says what to check. Assign it to $null so the typed text doesn’t print:
$null = Read-Host 'Review the list, then press Enter to delete them'
PowerShell adds a colon to your prompt. If you need the typed text, such as a YES to confirm, see how to prompt for user input in PowerShell.
Option 3: Press Any Key to Continue With [Console]::ReadKey
ReadKey returns as soon as one key goes down, no Enter needed. Passing $true hides the key. We pressed Q in Windows PowerShell 5.1:
Write-Host -NoNewline 'Press any key to continue: '
$key = [Console]::ReadKey($true)
Write-Host ''
"You pressed $($key.Key)"
Output:
Press any key to continue:
You pressed Q