It looks like line 4671 failed to find any .exe files in the directory where notes is supposed to be installed. Because $notesPathExes is $null, the Compare-Object command fails on next line. If there truly are no .exe files in that directory, then we would have to add a check that says to only process line 4673 and 4674 if $notesPatheExes is not null by adding conditional: If ($notesPatheExes) { LINE 4673, 4674 }
↧