Hi @Anonymous ,
Per my understanding, there should be no similar Powershell scripts in SharePoint 2016.
Usually these users’ query history is captured by the built-in search component of SharePoint, and the analysis component generates different preferences for each user. And these preferences will be automatically updated as the user's search is updated.
If the answer is helpful, please click "Accept Answer" and upvote it.
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.