This tool is designed to make it easy to check a disk for bad sectors.
It is intended for use with uninitialized drives, and uses "diskpart" to enable and create a partition, so "chksdk" can scan it.
Edit the ps1 file, and change $diskNum to the number of the disk you want to check.
Change $chkdskCmd to either /x or /r depending on if you want to do a quick scan, or a slow, but detailed scan.
Change $diskLetter to the letter you want assigned to the disk, REMEMBER to put a : after the letter.
to see the results of the command, you can check the log folder, automatically created in the same3 directory as the ps1 file. the output is in a txt file named the serial number of the drive.