I wrote a python script to generate fake irregular time series. When I execute the execd config with the --test flag it returns data perfectly, but when I move the config into the telegraf.d repository I received the following error:

Here is my config file:
[[inputs.exec]]
command = ["python", "D:/xxxxxx/telegraf/python/Event_data_gen.py"]
data_format = "influx"
Any advice would be appreciated.
Helllo @blharvey,
Can you set debug=true and send me the full logs? I’m not sure what’s happening.
Here is the log entries:
022-06-27T19:56:37Z I! [inputs.execd] Starting process: python [D:/xxxxxx/telegraf/python/Event_data_gen.py]
2022-06-27T19:56:37Z E! [telegraf] Error running agent: starting input inputs.execd: failed to start process [python D:/xxxxx/telegraf/python/Event_data_gen.py]: error starting process: exec: “python”: executable file not found in %PATH%
I double checked and the python is indeed set in the path.