Dynamic input in powershell for ask-CLI command

148 Views Asked by At

Need to create a powershell script for deployment of alexa skill and lambda function. Need a solution to provide dynamic input form a JSON file to powershell after executing the following command:

ask api --skill-id xxxxxxxxxxxxxxxxx create-account-linking

ask-cli command

I need to pass the parameters like

? Authorization URL:  https://www.google.com/
? Client ID:
? Scopes(separate by comma):
? Domains(separate by comma):
? Authorization Grant Type:  AUTH_CODE
? Access Token URI:
? Client Secret:  [hidden]
? Client Authentication Scheme:  HTTP_BASIC
? Optional* Default Access Token Expiration Time In Seconds:

from the JSON file dynamically.

0

There are 0 best solutions below