Get-Hotfix returns to PowerShell in PowerShell v7 preview 5 – at least on Windows.
PS> Get-Command Get-HotFix -Syntax
Get-HotFix [[-Id] <string[]>] [-ComputerName <string[]>] [-Credential <pscredential>] [<CommonParameters>]
Get-HotFix [-Description <string[]>] [-ComputerName <string[]>] [-Credential <pscredential>] [<CommonParameters>]
It still uses the Win32_QuickFixEngineering CIM class under the covers which is why its Windows only.
My preferred way of using Get-Hotfix is
PS> Get-HotFix | Sort-Object -Property InstalledOn –Descending
That way I see the most recent fixes at the top of the list and its easier to determine if the system is up to date.