Windows Sandbox, which is a lightweight virtual desktop, can now have Microsoft Store installed in it using a simple PowerShell script.
If you want to make your environment more secure, it's recommended to disable Legacy Authentication in Microsoft 365. Check ...