This is a batch script that automates the debugging of the switch for most software problems (highly automated and optimized ChoiDuJour method, see this page which explains the manual unbricking method via ChoiDuJour).
Be careful, once the TegraExplorer script is executed, all data in the sysnand will be deleted. Please do a complete dump of the nand first (even if the console doesn't work anymore) via Hekate or NXNandManager for example (not covered by this script) and please also do a dump of the console keys via Lockpick-RCM (if this one doesn't work it is likely that this procedure won't work). It is also preferable to use a blank SD (1 GB is more than enough), this is not mandatory but if some files in your SD are different from those in this procedure they will be replaced, especially the "bootloader\hekate_ipl.ini" file which is the most important if you use Hekate and Atmosphere will be updated to the version included in this procedure (Atmosphere 0.12.0 currently).