add script to run commands and put output in a scratch buffer