If the custom script only updates the prices and costs, it won't have any effect on the price-group assignments; of that much, I'm certain. Beyond that,...