@vampirepills I can't see which version of PowerShell you're running, but the problem may be that it's outdated. Here's how to update:
https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4
I'm not completely sure why the Alder Lake patch breaks some people's installs, but I suspect a third-party antivirus might be interfering, or maybe some extra-strict Windows Defender settings. If either applies to you, disable the antivirus (temporarily) or change Defender's settings, just long enough to get the patch to run and the game working properly. As long as you don't do anything else at the same time, your computer should be safe.
Or you can continue to use the PowerShell script, or you can use the Task Manager method described here:
https://answers.ea.com/t5/Technical-Issues-PC/Sims-3-won-t-open-Alder-Lake-Intel-12th-gen-CPU/m-p/11720109#M251930
Since it looks like you're running a disc or Steam install, be sure to apply the patch or the Task Manager method to TS3W.exe, with the W.