Hi,
With the script below, using plink (putty addon), and changing the $remotecommand variable to your service console command line, it should do the job
$User = <ESX-useraccount>
$Pswd = <ESX-useraccount-password>
$Computer = <ESX-hostname>
$plink = <plink-path>
$plinkoptions = " -v -batch -pw $Pswd"
$remoteCommand = <service console command line>
$command = $plink + " " + $plinkoptions + " " + $User + "@" + $computer + " " + $remoteCommand
$msg = Invoke-Expression -command $command
Regards