Test-ElysiumPasswordQuality and Send-ElysiumHashExport only worked
interactively: a Read-Host for the domain number and a credential
prompt, so nothing could run unattended.
- Both cmdlets take -Domain (a configured DomainNName, matched
case-insensitively) and -Credential. Omitted, they prompt exactly as
before; a supplied credential still goes through the same
Get-ADDomain / replication-permission pre-checks.
- The root wrappers take -Domain only and forward it through the
Windows PowerShell relaunch; a PSCredential cannot be passed on a
powershell.exe command line, so non-interactive credentials go
through the cmdlets.
- The two copies of the domain prompt become Select-ElysiumDomain in
Private/Settings.ps1. An unknown name fails listing the configured
domains; a domain without a DC fails before any credential prompt
(the export previously only noticed later).
Verified: unit test for by-name (case-insensitive), unknown name,
missing DC, and the prompt path with Read-Host mocked (valid and
invalid number); with a fake powershell.exe on PATH both wrappers
relaunch with "-Domain contoso.local" intact; 32/32 Pester tests pass
on this commit's tree. The AD paths need the Windows run.