I want to use Powershell to add or remove a language and change the keyboard layout from left to right or from right to left in Windows 10. I wrote code to add a language but I cannot find a guide to remove it again or to change the layout. I also want to ask the user if he wants to add or to remove a language.
This is my code:
$List = Get-WinUserLanguageList
$List.Add("lt-LT")
Set-WinUserLanguageList $List
Thank you in advance.