functionAdd-PASDiscoveredAccount{<#
.SYNOPSIS
Adds discovered account or SSH key as a pending account in the accounts feed.

.DESCRIPTION
Enables an account or SSH key that is discovered by an external scanner to be added
as a pending account to the Accounts Feed.
Users can identify privileged accounts and determine which are on-boarded to the vault.

.PARAMETER userName
The name�of the account user.

.PARAMETER address
The name or address of the machine where the account is located.

.PARAMETER discoveryDate
The date the account was discovered.

.PARAMETER accountEnabled
The state of the account, defined in the discovery source.

.PARAMETER osGroups
The name of the group the account belongs to, such as Administrators or Operators.

.PARAMETER platformType
The platform where the discovered account is located.

.PARAMETER domain
The domain of the account.

.PARAMETER lastLogonDateTime
The date this account was last logged into, defined in the discovery source.

.PARAMETER lastPasswordSetDateTime
The date this password was last set, defined in the discovery source.

.PARAMETER passwordNeverExpires
Whether or not this password expires, defined in the discovery source.

.PARAMETER osVersion
The version of the OS where the account was discovered.

.PARAMETER privileged
Whether the discovered account is privileged or non-privileged.

.PARAMETER privilegedCriteria
The criteria that determines whether or not the discovered account is privileged. For example, the user or group name.

.PARAMETER userDisplayName
The user's display name.

.PARAMETER description
A description of the account, defined in the discovery source.

.PARAMETER passwordExpirationDateTime
The expiration date of the account, defined in the discovery source.

.PARAMETER osFamily
The type of machine where the account was discovered.

.PARAMETER additionalProperties
A hashtable of additional properties added to the account.

.PARAMETER organizationalUnit
The organizational unit where the account is defined.

.PARAMETER SID
Security ID. This parameter is relevant only for Windows accounts.
Relevent when platformType is set to Windows

.PARAMETER uid
The unique user ID. This parameter is relevant only for Unix accounts.
Relevent when platformType is set to "Unix" or "Unix SSH Key"

.PARAMETER gid
The unique group ID. This parameter is relevant only for Unix accounts.
Relevent when platformType is set to "Unix" or "Unix SSH Key"

.PARAMETER fingerprint
The fingerprint of the discovered SSH key. The public and private keys of the same trust have the same fingerprint. This is relevant for SSH keys only.
Relevent when platformType is set to "Unix SSH Key"

.PARAMETER size
The size in bits of the generated key.
Relevent when platformType is set to "Unix SSH Key"

.PARAMETER path
The path of the public key on the target machine.
Relevent when platformType is set to "Unix SSH Key"

.PARAMETER format
The format of the private SSH key.
Relevent when platformType is set to "Unix SSH Key"

.PARAMETER comment
Any text added when the key was created.
Relevent when platformType is set to "Unix SSH Key"

.PARAMETER encryption
The type of encryption used to generate the SSH key.
Relevent when platformType is set to "Unix SSH Key"

.PARAMETER awsAccountID
The AWS Account ID, in the format of a 12-digit number.
Relevent when platformType is set to AWS or AWS Access Keys
Requires 10.8+

.LINK
https://pspas.pspete.dev/commands/Add-PASDiscoveredAccount
#>[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingUserNameAndPassWordParams','',Justification="Username not used for authentication")][CmdletBinding(DefaultParameterSetName="Windows")]param([parameter(Mandatory=$true,ValueFromPipelinebyPropertyName=$true)][ValidateNotNullOrEmpty()][string]$UserName,