In the above example, I would like to get the value "Bug" from "System.WorkItemType"
using
$response = Invoke-RestMethod -Url $someUri -Method Get -ContentType "application/json" -Headers $headers
$wit = response.fields.System.WorkItemType
doesn't work since the dot / period messes it up.
In javascript there is this question and answer but did not work in Powershell.
Using regex to replace the dot with underscore seems too farfetched (and I didn't get it to work, but used -match -convertFrom-Json -replace -convertTo-Json so maybe did it wrong?
So my question is simply: How do I get the 'Bug' value from the 'System.WorkItemType' key? (bug may be other strings...)