When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Could you please use a subject what gives a hint what your issue is about next time?
How does your input file look like? (You may post a few sanitized lines of it, formatted as code as well, please.)
And what do you actually want to achieve?
Regardless of all that: I’d recommend to ALWAYS read the help for the cmdlets you’re about to use completely including the examples to learn how to use them.