I would like to download a .msi file from in this instance blender.org. The full path to the MSI contains the Version of blender… blender-3-4-1.msi, Is there a way I could parse from an html page for the msi file but wildcard the 3-4-1, as this would change often. Its only to keep the msi file up to date
Well URIs are specific and while you can’t wildcard search for URIs the Invoke-WebRequest will return all seen links in the Property Links.href, so you can wild card search those for the proper URI for the msi file and then call Invoke-WebRequest again with it and -OutFile to save the MSI.
For Blender specifically you can query https://www/blender.org/download/, then look for blender.msi* which gives you the latest blender download URI. Then query that and again look at links for blender.msi and you will have your binary to download