PowerShell · online compiler

Run PowerShell online

Run PowerShell 7 online — cross-platform, object-pipeline, browser-hosted.

Firecracker microVM live per-test verdicts multi-file compile

PowerShell 7 (aka pwsh) is Microsoft's cross-platform successor to Windows PowerShell — same object-oriented pipeline, now on Linux. Great for ops scripting where structured data through pipes beats grep+awk.

Starter code

What you get in PowerShell

Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.

powershell
PowerShell 7
$n = [int][Console]::In.ReadLine()
Write-Output ($n * 2)
stdin →21
expected →42
FAQ

Common questions about PowerShell on ls-judge

PowerShell 7?
Yes — the cross-platform edition.
Windows-only cmdlets?
No — Linux host, only cross-platform cmdlets work.
PSGallery modules?
No network — bring your own script.
Free?
Yes.
Further reading
Also try