Question: I am trying to convert the output of

```
ps awux

```

into 11 fields with the headers eliminated and then importing that output into an existing table in SQL.

Answer: 
Based on the error messages, your script probably has some hidden non-breaking space characters (e.g. you typed `⌥`-`space`)

e.g. the errors are really something like:

```
~bin/killp: line 7: [[@menubar: command not found
~bin/killp: line 11: [[@menubar: command not found
~bin/killp: line 11: @[[: command not found
~bin/killp: line 15: [[@menubar: command not found
~bin/killp: line 15: @[[: command not found
~bin/killp: line 15: @[[@menubar: command not found
~bin/killp: line 19: conditional binary operator expected
~bin/killp: line 19: syntax error near `Dock'
~bin/killp: line 19: `if [[ $1 == Dock ]]; then' <-- Somewhere, not sure where.

```

Where I have replaced the invisible characters with @.
In my experience things like this are solved by looking a line or two up in the code and finding something I screwed up. 

I just typed out what you gave on a Mac using vim (used echo instead of killall) and it ran just fine and this: 

```
$ more test.sh
#!/bin/sh

if [[ $1 == Desktop ]] || [[ $1 == Finder ]]; then
    echo "Finder"
fi

```

On a Windows box running cygwin: 

```
petro@<blur> ~
$ ./test.sh

petro@<blur> ~
$ ./test.sh stuffing

petro@<blur> ~
$ ./test.sh Finder
Finder

```

So the code as written seems fine, your problem is likely above it.