How do I uninstall a Windows service using a PowerShell script?

I want to find and uninstall a Windows service.

How can I accomplish this using a PowerShell script?


(Get-WmiObject Win32_Service -filter "name='<service_name>'").Delete()

For more information:
Get-WmiObject
Delete method of the Win32_Service class