I am looking to run a PowerShell command to export specific data from my Office 365 Tenant...
Referencing 'O365Users.txt' contains a list of UPNs.
Get-Content C:\TEMP\O365Users.txt | Get-MsolUser -ALL | Select UserPrincipalName,DisplayName,Title,UsageLocation,Office,Department,IsLicensed,SignInName | Sort Title | Export-CSV C:\TEMP\Titles.csv
Get-MsolUser : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
How could I pull this specific data? Thanks in advance.