I wondered if this is something that Windows is wrong about?
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.