You're missing the index component in your script
You're missing the index component in your script
Also, within the New-SPSearchTopology function, you are passing in $AnalyticsServers to every Set-SPSearchComponents call, rather than the specific server array for each component.