The script does not go and check the other packages for a match.
For example if I have the following two packages that have identical SKU
BIOS Update - Hewlett-Packard EliteBook 840 G5 Notebook PC
BIOS Update - Hewlett-Packard EliteBook 850 G5 Notebook PC
The script only tries to match the first package (in reverse order) with the model name, but stops.
I'm not sure what you mean, cause you're referencing the Invoke-CMApplyDriverPackage.ps1 script and talking about BIOS Update packages. Could you be a bit more specific?
https://github.com/SCConfigMgr/ConfigMgr/blob/3308360ebc949e296110d63e98a31481f08cdadb/Operating%20System%20Deployment/Drivers/Invoke-CMApplyDriverPackage.ps1#L877
The script does not go and check the other packages for a match.
For example if I have the following two packages that have identical SKU BIOS Update - Hewlett-Packard EliteBook 840 G5 Notebook PC BIOS Update - Hewlett-Packard EliteBook 850 G5 Notebook PC
The script only tries to match the first package (in reverse order) with the model name, but stops.