Nezkoušel jsem, tohle je jen příklad.
run as admin in cmd or directly in powershell or in your script [I use autoit]
PowerShell.exe -Command Set-WinUserLanguageList -LanguageList en-US, ro-RO -force
this command will set 2 keyboards, can be only one ore more,
anyway the first will be default on boot