Windows 11 in S mode is designed for security and performance, exclusively running apps from the Microsoft Store.
If you want to install an app that isn't available in the Microsoft Store, you'll need to switch out of S mode.
If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.