Exec and Working Directory

The command is always searched in the PATH, if you want to specify one specific that is in a certain directory, you need to specify an absolute PATH when creating the exec.Command.

Working dir is exactly this. The directory that the executable is working in. Usually it is that you started it from when on a terminal.