SG's windows scripts