Why not run OO which installs PowerShell 7+ if not installed, O&O Shutup, then it makes a scheduled tasks that runs the default settings after every Microsoft update?
Why futz around with re-running anything?
Just run OO once, and forget it.
Please file any bugs if you find them.
This isn't really going anywhere except to help internet users and my clients.
Hope it's helpful
PS - All of it generated with VS Code, Augmentcode AI (https://www.augmentcode.com/), OpenSpec (https://github.com/Fission-AI/OpenSpec), and beads (https://github.com/gastownhall/beads).