Thanks for sharing. Maybe you could add a more detailed Readme? What is the exact use situation of the script?
Sorry for not expalining it better. This is basically a reverse engineering of Windows' (SOAP?) Scan API that was used to perform the scan over LAN. Unfortunately my Linux distribution did not support the scanner, so I looked at the requests made by my Windows VM, and I've created this small set of bash scripts to perform the scanning :)