$service = Get-Service -Name "AdskLicensingService" -ErrorAction SilentlyContinue if ($service -and $service.Status -ne 'Running') Start-Service -Name "AdskLicensingService" Write-Host "Detection: Licensing service restarted" -ForegroundColor Yellow