For the moment the best bet is probably to sort the files in a temp directory and run DWIConvert on that. DWIConvert examines every file in a directory and doesn’t do much general sorting or validation, so the program behavior is basically undefined if you have mixed series or non-DICOM data in the directory. Sometimes it just crashes. See this related comment about CLI file communication.