Public/Functions/Driver/Get-OSDDriverNvidiaDisplay.ps1
function Get-OSDDriverNvidiaDisplay { [CmdletBinding()] param () $ModuleNvidiaDisplay = @() $ModuleNvidiaDisplay = Get-ChildItem "$($MyInvocation.MyCommand.Module.ModuleBase)\Resources\OSDDriver\NvidiaDisplay" *.drvpack -Recurse | Select-Object FullName $NvidiaDisplay = @() $NvidiaDisplay = foreach ($item in $ModuleNvidiaDisplay) { Get-Content $item.FullName | ConvertFrom-Json } $NvidiaDisplay = $NvidiaDisplay | Sort-Object -Property LastUpdate -Descending Return $NvidiaDisplay } |