improve windows script