$content=Get-ExcelImport "P:\Scripts\cord\cord.xlsx"
$content |
foreach
{ if ($_ -ilike "*Rick*") {Write-Output $_}}
The output is coming out as the name is getting searched in the excel sheet and getting out as an output in powershell. I am not able to export the data in a text file. Can anyone please help me with this