This script currently has the HTML tag <keyMaterial> affixed to either side of the scraped password, as well as some file path data surrounding the network SSIDs. This modification to the script cleans these conditions up.
When outputting the file it saves as Wifi not Wi-Fi- and does not output to 0.txt, simply removing the dash - between Wifi makes this then work as intended. Tested and working on Windows 11.