Can we see the script? I saw similar behavior recently and I ended up fixing it by changing how I handled my output to Splunk.
I was initially doing something like:
Write-Output "Key = Value"
When I switched to creating a custom PSObject with the key/value pair as properties on the object it seems to be working as intended:
$props = @{
'Key' = 'Value';
}
$Output = New-Object -TypeName PSObject -Property $props
Write-Output $Output
... View more