Sorry if I missed it but I don't see how to output to a file I tried to use /csv -.\output.txt but that didn't do it
Sorry I answered my own question... .\GenericSearch.ps1 /csv | Out-File 'C:\Documents and Settings\admini strator\desktop \Powershell\Res tult2.txt'
I would only add that you can also use the redirection character to redirect the output to a file. For example: .\GenericSearch.ps1 /csv > c:\Scripts\Repo rt.csv