Maybe just write the command files to .kix instead of .cmd?