How to add servers to the Trusted Hosts list

How to add servers to the Trusted Hosts list via PowerShell and command Prompt for the WinRM client. WSMan provider for PowerShell allows it

TechDirectArchive