You did first check that the SSH service is running on the ESXi server first I assume ?
See Arne's most recent post on the topic PowerCLI: enable SSH and configure ESXi Firewall
Then a simple
New-SshSession -ComputerName $esx -Username root
should work.
Did you try that ?
Any error messages ?