I am trying to use [OS Process Sampler](https://jmeter.apache.org/usermanual/component_reference.html#OS_Process_Sampler) to run the `aws cli` commands in JMeter. 
I will be running this on docker where JMeter and `aws cli` both will be installed. But before I can do that, I tried to run this locally on my mac but so far unable to get the aws command to run.

On my local terminal for eg I can run: 
a. aws --version 
b. bash j.sh (aws --version)
Both returns aws-cli/2.0.8 Python/3.7.4 Darwin/18.7.0 botocore/2.0.0dev12

This confirms aws cli is available in path to be accessible globally.

However when I run the same command from OS Process sampler, I have tried following:
a. 

```
Working Directory: /Users/tester/Downloads/apache-jmeter-5.1.1/bin
Environment: {}
Executing: bash aws --version

```

[![enter image description here](https://i.stack.imgur.com/vS4x7.png)](https://i.stack.imgur.com/vS4x7.png)

RESPONSE: `bash: aws --version: No such file or directory`

b. 

```
Working Directory: /Users/tester
Environment: {}
Executing: bash j.sh
where j.sh just contains the aws --version command

```

[![enter image description here](https://i.stack.imgur.com/k80uY.png)](https://i.stack.imgur.com/k80uY.png)

RESPONSE: `j.sh: line 1: aws: command not found`

What am I missing?