There is no such cmdlet, at least not one from an official Microsoft-authored module. It's likely another ChatGPT generated answer/lazy support engineer.
You can however built your own external sharing report by leveraging the Graph API or CSOM. I have some sample scripts here: https://www.michev.info/blog/post/6154/report-on-externally-shared-files-via-the-graph-api