Go from User Object to PC Object via Powershell and SCCM

Using this funtion you can get SCCM PC object information on a given User object.

It makes a SQLCMD to the SCCM server database. 

Take it one step further and pipe a txt file of User objects to get relative PC object.