In order to fix the issue, you should exclude the folder that contains the inventory scripts. To do this, go to Start > All Programs > McAfee > Virus Scan Console, select On-Access Scanner and then navigate to Task > Properties > All Processes > Detection. Select Exclusions, click Add, press Browse and select the folder with the inventory scripts and press hit OK. If you have problems, I recommend you contact McAfee technical support.