This is a basic question but I'm stuck. I have the below code:
$array = @(
$hashtable1 = @{
Name = "Test1"
Path = "C:\Test1"
}
$hashtable2 = @{
Name = "Test1"
Path = "C:\Test1"
}
)
The array is created but empty. I have tried comma separation:
$hashtable1 = @{}, $hashtable2 = @{}
But this did not work. What is wrong?