Public/Get-P2000Region.ps1

# .SYNOPSIS
# Retrieves P2000 emergency services regions
function Get-P2000Region
{
    param
    (
    )

    Invoke-WebRequest -Uri https://www.alarmfase1.nl |
        Select-Object -ExpandProperty Content |
        pup '#filter li json{}' |
        ConvertFrom-Json |
        ForEach-Object { $_.children } |
        ForEach-Object {
            $Properties = [Ordered]@{}
            $Properties.ID = ($_.href -replace '^https?://www.alarmfase1.nl/', '') -replace '/$', ''
            $Properties.Name = $_.text
            $Properties.Link = $_.href
            $Properties.PSTypeName = 'UncommonSense.P2000.Region'

            [pscustomobject]$Properties
        }
}