Run command given and store output in variable.