Thank you for posting in this community.
Unfortunately, there is no PowerShell that can compare the differences between files in File Server and SharePoint Online. Perhaps you can look for other third-party tools that can do the comparison.
Thank you for your kind understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.