title: Pick last item from list in Powershell
body: <p>I'm trying to map a drive letter using this line of code which will give me a list of drives available from d to z.</p>
  <pre><code>ls function:[d-z]: -n | ? { !(test-path $_) }
  </code></pre>
  <p>I'd like to then pick the last letter, not random, from the list. How would I go about doing that? New to Powershell, thanks for the help.</p>