Context: in my company we have english users but german keyboards. So we want to use an english interface with a german keyboard layout set as primary and the english layout as secondary.
I found out that you can do it manually by going on Windows -> Settings -> Time & Language -> Preferred languages -> English -> Options -> Add Keyboard
I wanted to do this with powershell to deploy the computers with that requirement automaticially. There is a variable called InputMethodTips that contains the layouts in the WinUserLanguageList. But it seems it is only possible to install the language pack, which makes it second in priority which is not what we want. Also, if I put the german as a preferred language up manually, it also sets "apps & websites" as german, which is a bug that has not been fixed since at least 2016.