I would suggest writing out to temporary files. You could do something like the below code:
workflow Get-ServerServices
{
#Get the temp path of the context user
$TempPath = Join-Path -Path $([System.IO.Path]::GetTempPath()) -ChildPath "ServerServices"
New-Item -Path $TempPath -ItemType Directory # and create a new sub directory
$srvlst = Get-Content C:\TEMP\srvlst.txt
foreach -parallel ($srv in $srvlst)
{
$TempFileName = [System.Guid]::NewGuid().Guid + ".txt" #GUID.txt will ensure randomness
$FullTempFilePath = Join-Path -Path $TempPath -ChildPath $TempFileName
Get-Service -PSComputerName $srv | Out-File -Path $FullTempFilePath -Force #Write out to the random file
}
$TempFiles = Get-ChildItem -Path $TempPath
foreach ($TempFile in $TempFiles) {
Get-Content -Path $TempFile.FullName | Out-File C:\temp.txt -Append #concatenate all the files
}
Remove-Item -Path $TempPath -Force -Recurse #clean up
}
Basically you are getting the temp dir, appending a new directory, adding a bunch of GUID named text files with your output, concatenating them all into one, and then removing all of them