Public/Invoke-MSAuthRepair.ps1

function Invoke-MSAuthRepair {
    [CmdletBinding()]
    param ()

    Invoke-IEReset
    Invoke-SystemAppxRebuild
    Invoke-UserAppxRebuild -RestartExplorer

    if (!(Get-Process explorer -ErrorAction SilentlyContinue)) {
        Write-Warning "Explorer.exe is not running. And needs to be restarted in the user context."
    }
}