Open Terminal and Run a Few Lines

The Execute Shell Script action runs a script (and optionally returns a result) but:

  1. It doesn't use or involve Terminal.app
  2. It uses a fresh vanilla instance of the shell – not the instance seen by Terminal.app
  3. Its default directory (see the result of pwd) is the top of the file system. i.e. cd .. will not immediately have a meaning. (/ has no parent directory)

you can get a richer harvest by changing to (or referring to) a fully specified path:

image