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.
When you use the comparison operator -like you have to add wildcards in front, at the end or around your search pattern depending on what you’re looking for exactly. Otherwise it works like an -eq comparison.
Here some working examples: