PowerShell script to create new windows service.
$params = @{
Name = "<WindowsServiceName>"
BinaryPathName = 'C:\<Your Service Name.exe> -ServiceParams'
DependsOn = "NetLogon"
DisplayName = "Your Service Name"
StartupType = "Manual"
Description = "<Your service description>"
New-Service @params
$service = Get-WmiObject -Class Win32_Service -Filter "Name='<Service Name>'"
You can also delete this service -$service.delete( )