A. Assuming you're running something like this
$services = Get-Service
the easiest way to get just a certain number of first or last entries is
$service = Get-Service | Select-Object -first 1
There's also the -last parameter that works in a similar way. If you've saved the objects in a variable, as in these examples, you could also use syntax such as $services\\[0\\] to access the first object in the collection.
Do you have a Windows PowerShell question? Why not submit it to Don? Post your question at www.windowsitpro.com/FAQs/FAQSubmittalForm.aspx and you might see your answer online! Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.