performance – Need to execute command via jmeter

I have a scenario where I need to use jmeter to run numerous Kubectl commands. all this kubectl commands executing is for the automation purpose before running actual data preparation, and jmeter is in Windows with all the necessary kube configuration files in place. we are able to execute kubectl commands via cmd promt but I attempted via os sampler, but it got failed. Help would be appreciated.

os sampler snippet: tried to execute kubectl get pods but still not been through,
OS sampler

getting the response as — ‘kubectl’ is not recognized as an internal or external command,
operable program or batch file.

OS sampler response

Read more here: Source link