I need to create a script (.sh) that I can use to kill processes in one command. 

When I do `$ pgrep -f vmware`

It shows a list of: 

```
2234
2241
2251
2296
4751

```

Now I need to do for each one `sudo kill -9 4751`

Is there a way to automate this into

`sh sudokiller.sh vmware` then it will do the task automatically? Or there's a better approach?