CmdID / PowerShell / Cmdlets / Export
Export-HgsKeyProtectionState
Exports Key Protection Service configuration and certificates. Windows Server PowerShell reference
From the Windows Server PowerShell reference 5 parameters Its page in the reference
Parameters
-ForceForces the command to run without asking for user confirmation.-PasswordSpecifies the password which protects private keys contained within the exported configuration.-PathSpecifies the path of the file to which the configuration state is written.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.