I started typing a response that was no I can't replace -searchroot with - server. I then realized you meant use them both . And it worked
| Foreach ($cluster in (Get-view -ViewType ClusterComputeResource -Server $virtualcenter -Searchroot $DC.moref)){ |