Example of how to install a inf file:
NB You can also use the dism module cmdlets (e.g. Add-WindowsDriver).
function Install-Driver($path) {
# trust the driver certificate.
$catPath = $path.Replace('.inf', '.cat')
$cerPath = $path.Replace('.inf', '.cer')
$certificate = (Get-AuthenticodeSignature $catPath).SignerCertificate