Powershell Script in Telegraf

My guess is that there is something wrong when writing the points to influxDB, since that’s the only part the --test flag does not do.

I’d suggest you try to generate some points using the script, and then manually input them in InfluxDB, if there is something wrong with the point itself, you will notice it.
Another test could be using the output file to actually ensure if those points are gathered and written.

About your previous post/answer, please encapsulate the code in triple backticks (`) otherwise it’s unreadable

Sample here

The below text …

```toml
#### I'm a comment
[agent]
  interval = "10s"
```

… will be turned rendered as

#### I'm a comment
[agent]
  interval = "10s"