I have a PowerShell task that runs a script file that deletes files.
The deletion prompts the user for confirmation.
I've bypassed this when running the script by adding -force after the command.
When I run the script in VC, I get the following:
Exception in Task: A command that prompts the user failed because the host program or the command type does not support user interaction. Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows PowerShell ISE, and remove prompt-related commands from command types that do not support user interaction, such as Windows PowerShell workflows. A command that prompts the user failed because the host program or the command type does not support user interaction. Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows PowerShell ISE, and remove prompt-related commands from command types that do not support user interaction, such as Windows PowerShell workflows.
The script does execute correctly but the job errors and I do not get the output of the script passed into VC.