Cancel an unfinished line - PowerShell Scripting | Zoonk
Cancel an unfinished line
Use Esc or Ctrl+C to abandon a half-written command, including a continuation prompt that appears as >>. Recognize that PowerShell is waiting for the rest of an unfinished expression, not ignoring you.