function Get-CredentialFromFile { param([string]$Path) ``` if (!(Test-Path $Path)) { throw "Credential file not found: $Path" } return Import-Clixml -Path $Path ``` }