ApiKey parameter takes a sensitive variable that must be protected as much as possible. Recommend adding PSCredential support for this variable in order t oachieve this.