Creating a Search Service Application and topology with PowerShell in SharePoint 2013 or 2016 – IN SAME APP POOL AS OTHER SERVICE APPLICATIONS
You can use this script to create a new search service application after you have removed your search service application. …