I had written before about how to connect to an Exchange 2010 server from a Windows PowerShell, read here. The same can be done for Lync Server as well.
The commands are pretty much the same as for Exchange 2010.
Run the following commands to connect remotely using PowerShell.
$s = New-PSSession -ConnectionUri https://lync.exchangemaster.me/OcsPowershell -Credential (Get-Credential) Import-PSSession -Session $s
Do replace the ConnectionUri with your url.
Sure enough, I have all Lync cmdlets available in Windows PowerShell.