PowerShell
Windows 10や11(24H2現在まで)に搭載されているバージョンは5なので古い
どの方法での取得が推奨されるかはちょくちょく変わる
code:powershell
$condition = $true
if ( $condition ) { Write-Output "The condition was true" }
code:ps1
$condition = $true
if ( $condition ) { Write-Output "The condition was true" }