2023-12-01 【PowerShell】配列の要素数を得る PowerShell LengthプロパティかそのエイリアスであるCountを参照する。 PS > $n = 1..3 PS > $n.Length 3 PS > $n.Count 3