I am trying to automate a backup script, but the cloud-backup provider that I am using has a poorly optimized CLI tool.
When starting for the first time, it is expected to run and then get user input from stdin.
example:
c:/backup> jotta.exe login
accept licence (y/n):
And then after that:
enter token:
The best solution would have been if the original developers had made these accessible as arguments/flags when running the program, but unfortunately that is not the case.
Is there any way I can pass "the next input" to the program or a queue of arguments to the program with PowerShell?