While executing this on multiple VM's I thought there need to be a small correction.
The main concept of the script is to check McAfee service so if the vm doesn't have AV installed the cells in csv related to that name will be blank so rather keeping blank i need to check some other service in that vm like (Windows Update service which is common on all the versions of windows) this will give a clear info that the invoke is done using one of the four password mentioned above and found there is no McAfee Service.
I am thinking If condition will be helpful here can you rewrite by adding if condition in the $script.