        [Parameter(Position = 0)]
        public string Name { get; set; }

        protected override void ProcessRecord()
        {
            ICollection<HostEntry> hostEntries;
            bool hasEntries = TryGetHostEntries(GetHostsFile(), Name, -1, false, out hostEntries);

            WriteObject(hasEntries);

            base.ProcessRecord();
        }
    }
}
