Hi,
I'm not sure what you mean by "set a variable for the first available driver". If you want to list the installed drivers you can try this
Get-WindowsDriver -Online -All | Where-Object {$_.ProviderName -match "Lexmark"}
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.