A flag is normally like a zero byte size file or an entry in the registry that you look for to determine if your script has run or not as it only creates that file after a run of your script.

Why not just disable it all together until after the migration, then turn it back on.