Hello,
these values can be set using the following parameters of New-ADUser cmdlet:
User logon name: -UserPrincipalName <String>
Profile > content ( in home folder): -HomeDirectory <String>
Attribute editor >Employ ID: -EmployeeID <String>
All parameters are listed here:
New-ADUser
For your code, it would look something like this:
$userInstance = Get-ADUser -Identity "saraDavis"
New-ADUser -SAMAccountName "ellenAdams" -Instance $userInstance -DisplayName "EllenAdams" -UserPrincipalName "EllenAdams@domain.local" -HomeDirectory "Path" -EmployeeID "12345"
----------
If any reply helped solve your question, please remember to upvote and/or "Accept Answer".
It helps others facing similar issues find the solution.