Run PowerShell 7 online — cross-platform, object-pipeline, browser-hosted.
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.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
$n = [int][Console]::In.ReadLine()
Write-Output ($n * 2)
21
42