`cmd` is still in-scope for `evaluateCommand`, so there's no need to pass it explicitly.