And how about to run this script locally, how can i get a list of the software that is installed ?

I tried that script in rewritten so that it runs locally but i don't know what to use instead of WinNT://