Switch to more windows compatible script methodology