Run commands in given working directory