¿Cómo elimino una entrada de mi objeto JSON?

# helper to turn PSCustomObject into a list of key/value pairs
function Get-ObjectMembers {
    [CmdletBinding()]
    Param(
        [Parameter(Mandatory=$True, ValueFromPipeline=$True)]
        [PSCustomObject]$obj
    )
    $obj | Get-Member -MemberType NoteProperty | ForEach-Object {
        $key = $_.Name
        [PSCustomObject]@{Key = $key; Value = $obj."$key"}
    }
}

$entry = [PSCustomObject]@{
    PostedDate = "04/18/2018"
    JobTitle = "King"
    Street = "Bloor"
    City = "Toronto"
    DocumentURL = "../path/to/file.pdf"
}



$path = "A:\path\to\file.json"
$entry = Get-Content $path | ConvertFrom-Json

$entry

$today = (Get-Date).ToString('MM/dd/yyyy')#Get-Date -Date -format MM/dd/yyyy
$today = [datetime]::ParseExact($today, "MM/dd/yyyy", [System.Globalization.CultureInfo]::CurrentCulture)

foreach($date in $entry.Closing)
{
    $newdate = Get-Date $date.ToString()
    $newdate = $newdate.ToString('MM/dd/yyyy')
    $newdate = [datetime]::ParseExact($newdate, "MM/dd/yyyy", [System.Globalization.CultureInfo]::CurrentCulture)

    if($today -gt $newdate)
    {
        Write-Host $date
        #remove element from the JSON list
    }
}

No puedo entender cómo puedo eliminar un elemento del objeto JSON y guardar una copia de los elementos eliminados como un archivo JSON diferente

Estoy usando PowerShell 5.1 en Windows 10

Respuestas a la pregunta(1)

Su respuesta a la pregunta