How do I create array of arrays in PowerShell?

Adding a comma force to create an array:

$x = @(
    ,@(1,2,3)
)

Simple way:

$x = ,(1,2,3)

Leave a Comment