Call Rest API inside powershell function

I have called Rest API using powershell function but i need to get date entry from all objects like english-and-wales, scotland , northern ireland. using this $list.'england-and-wales' i will get only england-and-wales details but remaining scotland, northern ireland date i am unable to fetch

function Get-Holiday {
  Invoke-RestMethod -Method Get -Uri

$list = Get-Holiday
$list | ConvertTo-Json -Depth 3

I need to get date entry from all england-and-wales, scotland, northern ireland. can you please provide solution for that

Example image

Read more here:

Content Attribution

This content was originally published by Hafizah Channel at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: