title: How to end a multi-line command in PowerShell
body: <p>This should be easy, but can't figure it out. How do I end a multi-line command in PowerShell? For example if I enter <code>Get-ChildItem |</code> and press enter then I get a <code>&gt;&gt;</code> prompt which I assume is to continue the command. But if I then enter <code>foreach{Write-Host $_.name}</code> and press enter I still get the <code>&gt;&gt;</code> prompt.</p>
  
  <p>How do I say, <em>I'm done, run this now</em>? I thought it would happen when I wrote a complete command (not ending with a pipe or an unclosed bracket), but doesn't seem to. Also tried ending with a semi-colon, but that didn't help much.</p>