Edit \etc\hosts file with notepad.
This funtion starts notepad.exe as administrator and opens the hosts file for editing.
run notepad as administrator and open the hosts file for editing
PS C:\> Edit-EtcHosts
This example opens the local \etc\hosts file in an administrative notepad for editing.