Add the Wireshark folder to your path. This will allow any program in the Wireshark folder to run from any folder, including mergecap and editcap.