I have a PS script that register's an app in Azure AD. I want to add redirect URLs using ps script. I tried to take user inputs like,
$uri = Read-Host -Prompt "enter URI"
but this didn't work and threw the following error.
I have no clue what would be the solution for it.
error log=
RunbookFlow : System.Management.Automation.Host.HostException: A command that prompts the user failed because the host program or the command type does not support user interaction. The host was attempting to request confirmation with the following message: at System.Management.Automation.Internal.Host.InternalHostUserInterface.ThrowPromptNotInteractive(String promptMessage) at System.Management.Automation.Internal.Host.InternalHostUserInterface.Prompt(String caption, String message, Collection1 descriptions) at Microsoft.PowerShell.Commands.ReadHostCommand.BeginProcessing() at System.Management.Automation.Cmdlet.DoBeginProcessing() at System.Management.Automation.CommandProcessorBase.DoBegin() At line:6 char:57 + <#-- Enable activity tracing to see error location --#> RunbookFlow
+ ~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Orchestrator.GraphRunbook.Cmdlets.InvokeRunbookFlowCommand