function Select-FirstObject, Select-LastObject