m new to batch scripts and powershell is there a way to use if else on this script to check if ok do something if error do something else:
PS C:\Users\Amine>
>> Get-PnpDevice -FriendlyName "*LuminonCore IDDCX*" | ft -wrap -autosize Status
Status
------
OK
//after disabling the driver
PS C:\Users\Amine>
>> Get-PnpDevice -FriendlyName "*LuminonCore IDDCX*" | ft -wrap -autosize Status
Status
------
Error

) && (and) || (in them: stackoverflow.com/a/71358755/4190564