Answer application prompt in powershell

Hi Team,

I have a command line application which prompts for an input

admin setup code

Enter code:

I’m running the admin command of this custom application via powershell but want to pass in the code 123 without the script stopping and prompting the user. I cannot pass the code as a value in the ‘admin setup code’ as the program doesnt allow it, it must be enterred at the prompt.

thanks

Gary