You need to get the target person's device once to get the two-step verification code and add your device as a trusted device so that Apple does not ask for two-step verification again for your device. Otherwise, you can hire a professional hacker to hack iCloud with two step verification.