Partially working cmd file parser