when pasteurized milk goes sour, its just plain spoiled. Nothing to do with it but throw it in the trash and get some fresh milk for your scalloped potatoes “sour milk” for baking these days is usually milk to which a bit of acid, vinegar or lemon, is added to curdle it - it can be used as an alternative to buttermilk in baking recipes.