Fix undefined variable in BatchCommand