#Exception catch when there's a connectivity problem with the arrayIf($Exception.Exception.InnerException){Write-Host"Please verify the connectivity with the array"-foregroundyellowWrite-HostWrite-Host"Error details: $($Exception.Exception.InnerException.Message)"-foregroundyellowWrite-Host}

#Exception catch when the rest request return an errorIf($Exception.Exception.Response){