Excute shell commands synchronously