You cannot enable vSAN ESA using PowerCli 13.3, however this is successful when using PowerCli 13.1
The command you are using is:
$DataCenter = Get-Datacenter -Name "abc"
$DataCenter | New-Cluster -Name "test-cluster"
$DataCenter | Get-Cluster -Name "test-cluster" | Set-Cluster -VsanEnabled:$true -VsanEsaEnabled $true -Confirm:$false -Verbose
13.3 is not working as below
13.1 is working as below
VMware vCenter Server 8.0
VMware ESXi host 8.0
PowerCli 13.3
The Engineering Team is aware of this issue with PowerCli 13.3 and they are working towards resolution
Resolution:
The fix will be ready in PowerCli release corresponding to vSPhere 9.0U1
Workaround:
Use PowerCli version 13.1
OR PowerCli 13.3 with the command below
New-Cluster -Name "MyCluster" -Location "DataCenter" -VsanEnabled -VsanEsaEnabled