The way I later on created my two dimensional array was like this:
$d = New-Object 'Object[,]' 10, 20This is however created as an Object array while I needed int. I changed the code to this:
$d = New-Object 'Int32[,]' 10, 20Then I thought that it should be possible to streamline it a bit so I got this:
$d = Int32[,] 10, 20Simple enough. When I see it, I wonder why I couldn't figure it out quicker.