Installing Wireless Display, Windows face Unlock via PowerShell

Solution 1:

It looks like these are called Windows Capabilities in tech-speak and packages can be turned on/off using:

 Get-WindowsCapability -Online -Name "XPS.Viewer*" | Remove-WindowsCapability -Online

And the same applies to adding a capability:

 Get-WindowsCapability -Online -Name "OpenSSH.Client*" | Add-WindowsCapability -Online

Listing all available capabilities:

Get-WindowsCapability -Online