Is it simply that the recovery file isn’t located in your “platform-tools” folder where your command prompt it’s trying to find it? Do you need to copy it into that folder and rerun the code?
If that’s not the answer, can you please copy the exact error as a reply?