PowerShell: Compare-Object doesn't provide output from script, but from console
PowerShell: Compare-Object doesn't provide output from script, only from console (Function doesn't have proper return value)