ClearDefenderHistory.cmd clears the Windows Defender "Protection history" by creating a RunOnce entry in HKLM that clears the Windows Defender log folder the next time the computer is restarted.
Some people may want to run this script just to clean things up and not see old detections under Protection history. For others, addresses an issue where Defender would continue to return false positives even after installing new definitions to eliminate detection.