Hey, I was trying to execute power shell script in ui path but getting below exception

![The image shows an error message indicating that a PowerShell command failed due to the host program or command type not supporting user interaction, with a suggestion to use a program that does support user interaction or remove

script:
clear
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
$w = $args[0] 
$secret = ""
$SecurePassword = ConvertTo-SecureString $secret -AsPlainText -Force
$TenantId = ''
$ApplicationId = ''
$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $ApplicationId, $SecurePassword
Connect-AzAccount -ServicePrincipal -TenantId $TenantId -Credential $Credential
#Get-AzKeyVaultSecret -VaultName 'kva-uks-nprd-pma-0010' -Name 

passing one arg[0] at command line

please help me I am stuck over here

Hi!

You should obscure your tenantid, applicationid and secret :slight_smile: Quickly

thanks for saving me