How do I create a variable to store data for further manipulation and then Convert the data coming out of the Excel document into a PSCustomObject and then filter it down to the people I care about
Here's what I have so far:
$excel = new-object -comobject Excel.Application
$path = "C:\Users\Test.xlsx"
$excel.workbooks.open($path)
$excel.Visible = $True
$variable = $excel.workbooks.open($path)
$worksheet = $variable.activeSheet
For ($j = 6; $j -lt 124; $j++) {
For ($i = 1; $i -lt 11; $i++) {
$worksheet.Cells.Item($j,$i).text
}
}