Replace IsAnInteractiveSession by IsWindowsService (#4253)
Replace IsAnInteractiveSession by IsWindowsService (#4253)

* Replace IsAnInteractiveSession by IsWindowsService

* rename checkUseInteractiveMode to checkWindowsService
open-telemetry/opentelemetry-collector,open-telemetry/opentelemetry-collector,open-telemetry/opentelemetry-collector