Here is another solution Click Here to check from github. My problem was all files were crypted and Google Drive was also keeping the crypted and previous versions. I had to convert some files urgently and any script will be run will have issue with the recovered files.So I checked documents and discuss with people who understands.I even searched and ask ai tools. At one point i figured how to solve it and shared it in github for anyone who wants to update , use or even change the code.