@kiran_g
As requested below is the PowerShell scripts for the same.
Flow Screenshot:

Only PowerShell Script code:
# Define a hashtable mapping numbers to alphabets
$numberToAlphabet = @{
1 = "A"
2 = "B"
3 = "C"
4 = "D"
5 = "E"
6 = "F"
7 = "G"
8 = "H"
9 = "I"
10 = "J"
11 = "K"
12 = "L"
13 = "M"
14 = "N"
15 = "O"
16 = "P"
17 = "Q"
18 = "R"
19 = "S"
20 = "T"
21 = "U"
22 = "V"
23 = "W"
24 = "X"
25 = "Y"
26 = "Z"
}
# Input index
$inputIndex = %Indexvalue%
# Check if input index is valid and get corresponding alphabet
if ($numberToAlphabet.ContainsKey($inputIndex)) {
$alphabet = $numberToAlphabet[$inputIndex]
Write-Output $alphabet
}
else {
Write-Output "Invalid input index."
}
Full PAD flow code:
SET Indexvalue TO 6
@@copilotGeneratedAction: 'False'
Scripting.RunPowershellScript.RunPowershellScript Script: $'''# Define a hashtable mapping numbers to alphabets
$numberToAlphabet = @{
1 = \"A\"
2 = \"B\"
3 = \"C\"
4 = \"D\"
5 = \"E\"
6 = \"F\"
7 = \"G\"
8 = \"H\"
9 = \"I\"
10 = \"J\"
11 = \"K\"
12 = \"L\"
13 = \"M\"
14 = \"N\"
15 = \"O\"
16 = \"P\"
17 = \"Q\"
18 = \"R\"
19 = \"S\"
20 = \"T\"
21 = \"U\"
22 = \"V\"
23 = \"W\"
24 = \"X\"
25 = \"Y\"
26 = \"Z\"
}
# Input index
$inputIndex = %Indexvalue%
# Check if input index is valid and get corresponding alphabet
if ($numberToAlphabet.ContainsKey($inputIndex)) {
$alphabet = $numberToAlphabet[$inputIndex]
Write-Output $alphabet
}
else {
Write-Output \"Invalid input index.\"
}''' ScriptOutput=> PowershellOutput
Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏