PowerShell
Windowsのコマンドプロンプトに代わる、.NETベースのコマンドシェル。
PowerShell - Wikipedia
Windows 10や11(24H2現在まで)に搭載されているバージョンは5なので古い
最新バージョン(PowerShell 7)はWingetやGitHub経由で取得する必要がある
詳細:https://learn.microsoft.com/ja-jp/powershell/scripting/install/installing-powershell-on-windows
GitHub:https://github.com/PowerShell/PowerShell/releases/latest
どの方法での取得が推奨されるかはちょくちょく変わる
Scrapboxではsyntax highlight未対応?
code:powershell
$condition = $true
if ( $condition ) { Write-Output "The condition was true" }
code:ps1
$condition = $true
if ( $condition ) { Write-Output "The condition was true" }