PowerShell : Adding records to the hosts file

This is always a pain. Its much easier to just open a PowerShell windows as an administrator and issue the following

Add-Content C:\Windows\System32\drivers\etc\hosts "0.0.0.0        www.hello.com "