$ErrorActionPreference = 'SilentlyContinue'
foreach ($entry in Get-StartApps) {
    if ($null -eq $entry -or [string]::IsNullOrWhiteSpace($entry.AppID)) { continue }
    if ($entry.AppID -notmatch '!') { continue }
    if ($entry.AppID -like '\\*') { continue }
    $name = ([string]$entry.Name).Trim()
    $aumid = ([string]$entry.AppID).Trim()
    if ([string]::IsNullOrWhiteSpace($name) -or [string]::IsNullOrWhiteSpace($aumid)) { continue }
    Write-Output ($name.Replace("`t", ' ') + "`t" + $aumid)
}
