For the limited purpose of running TestDisk or PhotoRec, one need not necessarily create a UBCD or a Live CD. ( I do not know which version of TestDisk these will have.)
The OP can create a DOS bootable pendrive using Rufus v1.1.7 without FreeDOS Support - 154 KB (only MSDOS) Rufus - Create bootable USB drives
Then download the current stable version of TestDisk 6.13 for DOS/Win9x, http://www.cgsecurity.org/wiki/TestDisk_Download
extract the contents to the root directory of the pendrive, boot from the USB pendrive (using the one-time boot menu) and at the command prompt type testdisk.exe and press ENTER to run it.
Note: If extracting the TestDisk.zip puts the contents to a folder like TestDisk6.13, all files there could be selected and moved to the root directory of the pendrive.. At the end of it the bootable DOS TestDisk pendrive should look like this:
( I have created the bootable DOS TestDisk pendrive, run it and checked it on my system. The OP should select the correct drive shown by identifying it by its capacity.)