The last solution would be great, if I could just filter its results into to display just the urls that contain a specific URL (for examples, lets just call it sample.test.com). Is it possible to modify the line $customLinkObjects | Select-Object WebTitle,WebURL,TopNavLink,TopLinkTitle,TopLinkURL,QLHeaderTitle,QLHeaderLink,QLChildLinkTitle,QLChildLink,ListName,ItemTitle,ItemURL,PageContentLink | Export-Csv $filePath to filter out the results unless the result is equal to sample.test.com ?

Or if there is a more elegant solution, please let me know. I am grateful for any help.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Please don’t add just a link as answer to a question. If the link is broken, the answer you provided will not be useful for future visitors. Provide an answer of your own and use the link as reference. If needed you can block quote the content from your link. More information is found in our help center, especially How do I write a good answer
–
Benny Skogberg♦Jan 9 '14 at 11:15