$ServiceName = Get-Service | where { $_.Status -eq 'StopPending' }

$ServicePID = (get-wmiobject win32_Service | Where { $_.Name -eq $ServiceName.Name }).ProcessID

Stop-Process $ServicePID