Minor improvement to windows script