I am working on a small script for CheckMK. CheckMK requires a special syntax as described in section 2.1. Link
In my script I have a variable that may contain several objects. I would like to display these objects one below the other. According to CheckMK, this is possible with “\n”, as described in section 3.6. Link
However, I don’t know how to implement this in PowerShell.
Could someone help me here?
Yes thats right, but i dont know how to implement this in my code/variable.
I Think ist should looks something like
Write-Host “1 “SericeName:” - $duplicates[0]\n$duplicates[1]\n$duplicates[2]"
But i am not sure how to implement a loop of the length of the array in a Write-Host.