The exact capability names may vary by Windows build. Use the Get-WindowsCapability command to see current names.
If you want to install all RSAT tools at once without clicking through menus, use an elevated PowerShell prompt: install rsat tools windows 11