Uses mkvextract and mkvmerge to fix strangely formatted srt subtitles in Matroska files.
Uses MediaInfo CLI to check if the created mkv file has obvious errors.
More information here: https://forums.plex.tv/t/missing-lines-in-srt-subtitles
MKVToolNix: https://chocolatey.org/packages/mkvtoolnix
MediaInfo CLI: https://chocolatey.org/packages/mediainfo-cli
Always have backups of your files ready, even if there are checks in place that should prevent such behavior. Don't blame me if all your files suddenly are deleted, your computer bursts up in flames or your nearest nuclear reactor goes into meltdown.