Trojan Detected By Windows Security

It's almost certainly a false positive. The Windows antivirus is terrible and there's nothing remotely suspicious in that script or any current derivatives from the same thread, unless it has been modified since it was written several years ago.