How to download links, filter them and save them

Can someone please help me? How can you download all links from a website and filter them if they end in htm, html or asp?

Sorry for my bad english. It is not my first language

Thank you in advance for your help

Dominik,
Welcome to the forum. :wave:t4:

This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

What have you tried so far? We expect you to make an own attempt to get your task done or to solve your problem in the first place. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.

To get you started anyway: Depending on the website you want to query there are basically 2 cmdlets you may use:

and

Please always read the help for the cmdlets you’re about to use completely including the examples to learn how to use them.