[powershelldre:S8677] Write-Host to set set pipeline variables in a script

Inside a Powershell script.ps1 file, which is called from an azure-pipeline.yml some pipeline variables are set.

According Set variableproperties and Logging command format output must go to standard output. Documentation uses Write-Host command.

          - task: PowerShell@2
            inputs:
              pwsh: true
              targetType: inline
              script: |
                $packageListJson = '${{ convertToJson(parameters.vcpkgPackageList) }}'

                & "scripts\script.ps1" `
                  -PackageListJson $packageListJson `
            env:
              PATH: $(VSDEV_PATH)
              INCLUDE: $(VSDEV_INCLUDE)
              LIB: $(VSDEV_LIB)
              LIBPATH: $(VSDEV_LIBPATH)
param(
    [Parameter(Mandatory = $true)]
    [string]$PackageListJson)

...

    if ($LASTEXITCODE -ne 0) {
        # powershelldre:S8677 emitted by next line
        Write-Host ("##vso[task.logissue type=warning]Drift check: REF '$Ref' is not reachable ")
        # Return a non-empty sentinel so the caller detects changes and validates the version.
        return @("__ref-not-reachable__")
    }

Proposal: exception to the rule, if ##vso[...] or ##[...] pattern in stdout