This compiles the search scopes in the SharePoint search service application. I used this when I was creating new scopes.
$ssa = Get-SPenterpriseSearchServiceApplication write-host $ssa.name $ssa.StartScopesCompilation()