Using PowerShell and GAM, updating user account photos in a Google Apps domain is pretty simple. The easiest way to perform this task is by feeding GAM the CSV file directly without using any PowerShell commands, as seen below.
The PowerShell alternative is slower and requires more work to setup, but it allows us to do more than update a single attribute. For example, in addition to updating the user photos in Google Apps, you may need to populate Active Directory with attributes such as phone extensions, home folders, and email accounts. For this reason, knowing how to pipe information into GAM from PowerShell can be useful when writing scripts to automate workflows.