Powershell-Adding Printers

I have a PS script that adds printers to my computer from a local domain, i use this script for each location I visit since the location printers are not on the global domain. The issue I run into is that other people use this same script but have different versions of the Lexmark Universal driver. I am trying to set a variable with the first available Lexmark Universal driver the script locates, and the use that when adding the printer. Is that possible ? I do not want to call out the different versions in the script if possible.

I don’t see why it wouldn’t be possible. I also don’t see how it will be possible to help you with your code if you don’t share it.