I am currently working through some webservice calls wrote in C# .net and converting these to PowerShell. This has been going ok until I got to the following:
test.systemFields = new systemFieldsType
int j = 0; metadata.systemFields[j].name = "name"; metadata.systemFields[j++].value = "test name"; metadata.systemFields[j].name = "type"; metadata.systemFields[j++].value = "test";
In PowerShell I am trying:
$test.systemFields = New-Object systemFieldsType
I can see systemFieldsType as an option but it doesn’t like me adding .
Any ideas how I deal with this in PowerShell?