improved windows script