The Lync 2013 Management Shell has a tendency of getting stuck or hung when running on Windows Server 2012 R2. Upon opening it, all you see is a black window, no prompt.
To fix the problem, just install the latest Cumulative Update package (CU from January 2014 fixes the problem).