Resources/BuildScripts/Build-Updates.md.ps1

Import-Module OSD -Force
$AllOSDUpdates = @()
$AllUpdateCatalogs = Get-ChildItem -Path "C:\Users\david\OneDrive\GitHub\MyModules\OSD\Catalogs\WSUSXML\*" -Include '*.xml' -Recurse
foreach ($UpdateCatalog in $AllUpdateCatalogs) {$AllOSDUpdates += Import-Clixml -Path "$($UpdateCatalog.FullName)"}

$AllOSDUpdates = $AllOSDUpdates | Select-Object -Property * | Sort-Object -Property Title -Unique | Sort-Object CreationDate -Descending #| Out-GridView -PassThru -Title "All OSDUpdates"
Write-Host ""
$AllOSDUpdates | Select-Object -Property CreationDate, KBNumber, Title | Sort @{Expression = {$_.CreationDate}; Ascending = $false}, KBNumber, Title | Out-File C:\Users\david\OneDrive\GitHub\MyModules\OSD\UPDATES.md