Pick last item from list in Powershell April 6, 2024 by Tarik You can use Select-Object -Last 1 at the end of that pipeline.