Set PATH=%PATH%;C:\Program Files\Autodesk\Maya2016\plug-ins\bifrost\devkit\bif2prt\bin
There you are saving the path of the bif2prt file, so you can execute it later.
Then you have to go (in the cmd) to the path where the files you want to convert are. Once you are placed in the folder you type:
FOR %i IN (*foam*) DO bif2prt.bat -f %i