While reviewing the PowerShell setup script provided by the observability agent, line 133:
$level = "$($env:log_level -eq $null ? 'warn' : $env:log_level)"
fails with: "Expected token '?' in expression or statement."
The problem is that PowerShell does not support the ternary ? : operator. This is invalid syntax in all versions of PowerShell, including 7+.
I strongly advise changing it to the following code "$level = $env:log_level ?? 'warn'."
I have not verified the subsequent install steps, but this should be addressed.
Thank you for your attention.