CmdID / PowerShell / Cmdlets / Install
Install-ADServiceAccount
Installs an Active Directory managed service account on a computer or caches a group managed service account on a computer. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-AccountPasswordSpecifies the account password as a secure string.-AuthTypeSpecifies the authentication method to use.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ForceForces installation of the service account.-IdentitySpecifies an Active Directory group object by providing one of the following values.-PromptForPasswordIndicates that you can enter the password of a standalone managed service account that you have pre-provisioned and ignored for group managed service accounts.-WhatIf, -wiShows what would happen if the cmdlet runs.