The Stop-VMHostService cmdlet expects a HostService object in the pipeline.
Try like this
Get-VMHost | Get-VMHostService |where {$_.Key -eq 'TSM-SSH' -and $_.Running} |
Out-GridView -OutputMode Multiple -Title "Select ESX where SSH should be stopped" |
Stop-VMHostService -confirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference