Public/Set-P1ApiKey.ps1
function Set-P1ApiKey { <# .Synopsis Stores the PlannerOne API key. .Description Store locally the PlannerOne API key to access private PlannerOne feed. .Parameter ApiKey The PlannerOne ApiKey to store. #> [cmdletbinding()] param( [Parameter(Mandatory=$true)] [string] $ApiKey ) Process { Set-ApiKey $ApiKey Write-OK "Key stored" } } |