PowerShell array initialization January 30, 2023 by Tarik Here’s two more ways, both very concise. $arr1 = @(0) * 20 $arr2 = ,0 * 20