## Convert .txt to .cellml # go to the OpenCOR folder $dpath= '' cd $dpath # model path $mpath='' $txtfiles="Para","PASMC" foreach ($txtfile in $txtfiles) { ./OpenCOR -c CellMLTextView::export $mpath\$txtfile.txt | out-file $mpath\$txtfile.cellml -encoding utf8 }