If I understand Kem’s code right, he wraps the string in single quote and I see Kimball’s code as double quote.
I tested both and they both work. Is there a “preferred” way?
sh.Execute "/bin/bash -lc 'which scan'"
or
sh.Execute "/bin/bash -lc ""which scan"""