For deleting a Windows service in Windows CMD, you have to call
sc delete "Service Name"
This doesn’t work in PowerShell, because sc is an alias for the cmdlet Set-Content in PowerShell. Deleting Windows service in PowerShell can be done by calling
sc.exe delete "Service Name"
Note that PowerShell has to be run as administrator.