PowerShell Script

Job ID: 33076340

Budget: $30 – $250 USD

The Below PowerShell Script works, but what I want is for it to give me the UserPrincipalName of each of the
employee ids in the EmployeeID.txt file that it is reading from. Now the script gives it to me with Write-output,
but I want to export to .csv file just the employeeID, UserPrincipalName, Displayname, AccountEnabled out to csv file nicely formatted.

Connect-AzureAD
ForEach ($item in (Get-Content F:\Employees\EmployeeID.txt)) {
Get-AzureADUser -Filter "startswith(EmployeeID,'$item')" | Write-Output
}

The EmployeeID.txt file has a list of
employeeid's listed like this for example:
008783286
008789618
008735775
008786110
008747603
Desired out put to .csv file: 008786110, jane.sal@domain, Jane Sal, AccountEnabled Value True or False
For each employee id in the listed employeeID.txt file.