I am a noob who has been handed the attached power shell script and instructed to append the output to a csv file. It sounds simple enough but I am making little to no progress on it. In order to run the script you will need to define a path to a msi package - this is done on the very last line of the script. When you execute the script it will output Product_Name, Product_Version and Package_Code. I need to export and append those 3 items to a csv file. When I execute the export function I receive a parameter error that bombs the script out.
Within the script I have commented out the lines of code I have attempted adding/manipulating to try and make this work. Any help or direction on this would be much appreciated. Thank You in Advance.
NOTE The script will run on any msi file but you must specify the path at the end of the script: