See this Microsoft link:
How do I switch out of S mode?
To increase security and performance, Windows 10 in S mode runs only apps from the Microsoft Store.
If you want to install an app that isn't available in the Microsoft Store, you'll need to permanently switch out of S mode.
There's no charge to switch out of S mode, but you won't be able to turn it back on.
If you're blocked from switching and your device belongs to an organization, check with your administrator.
Your organization can choose to keep all devices in S mode.
On your PC running Windows 10 in S mode, open Settings > Update & Security > Activation.
Find the Switch to Windows 10 Home or Switch to Windows 10 Pro section, then select the Go to the Store link.
Note: Don't select the link under Upgrade your edition of Windows.
That's a different process that will keep you in S mode.
On the page that appears in the Microsoft Store (Switch out of S mode or a similar page), select the Get button.
After you confirm this action, you'll be able to install apps from outside the Microsoft Store.
https://support.microsoft.com/en-us/windows/switching-out-of-s-mode-in-windows-4f56d9be-99ec-6983-119f-031bfb28a307
https://learn.microsoft.com/en-us/windows/deployment/upgrade/windows-10-upgrade-paths
https://learn.microsoft.com/en-us/windows/deployment/upgrade/windows-10-edition-upgrades
.
.
.
.
.
Please remember to vote and to mark the replies as answers if they help.
On the bottom of each post there is:
Propose as answer = answered the question
On the left side of each post there is /\ with a number: click = a helpful post
.
.
.
.
.