There are multiple versions of Powershell and we have no idea what changed on your machine last Tuesday. If your code suddenly starts doing something different then the first thing you should do is identify what has changed. For example if you applied Windows updates then go to the update history and see what changes were made. Did any of them impact the version of Powershell that you're using? If so then revert the update and see if the problem goes away.
If there were no updates then the problem is somewhere else. Where that problem is would be hard to diagnose. At that point you might need to step through the script using VS Code or similar to see what is going on. It could be the HTML that you're reading has changed.