Hello TechNet Gallery,
Here is a simple Power Shell Script which helps you to easily configure your Win RM ( Windows Remote Management ) Service to be activated.
WIN RM is used to control your machines and servers over the command line and on the destination server's Power Shell.
Some times you can encounter problems like getting error WIN RM service cannot find the destination host or cannot connect, my advice is to check firewall first and write inbound outbound rules.
Hope you will enjoy it.