I think that is up to the program being called not PowerShell. If the program wants to accept input interactively and does not provide an input parameter for the information or a way to provide an "answer file" then I am not sure you can get around that.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato