In verse 10, God says that at the beginning of something, He announces or makes known what will happen at the end. That goes beyond knowing in advance how cause and effect and natural law will play out. He knows that too, but here it means He has determined what that end is. That’s why He follows up by referring to what He will do so His purpose is worked out.
It is evident that God has no problem overriding the will of mankind, especially when mankind rebels against Him and tries to assert self-sovereignty. That is the context here. The nation that God redeemed from Egypt didn’t want Him any longer, and wanted the gods of the surrounding nations instead. So, God declares that the nation will be powerless against what He will cause to occur. If He has said it will happen, or if He has purposed it, He will bring it to pass because He is sovereign, not mankind.
There is no point at which God can know a name this many years in advance, but one more year would be too much for Him. As we saw, He declares the end from the beginning. If He has purposed it, He will also do it. God demonstrated His foreknowledge with Cyrus, and there is no scriptural explanation for why He could not also choose some from the foundation of the world and write their names in His Book. He works all things according to the counsel of His will, and His foreknowledge is beyond our comprehension.