I'm trying to automatically connect an Anydesk Session in Powershell.
According to their CLI documentation, you can pass password with echo.
Right now, I'm starting the process like this, since I need the process ID afterward.
$app = Start-Process $config.anydesk_path -ArgumentList @($config.ip_addresses[$i], "--plain") -passthr
I've tried appending the password to the Argument List like this
$app = Start-Process $config.anydesk_path -ArgumentList @($config.connect_pw, $config.ip_addresses[$i], "--plain", "--with-password") -passthru
but that doesn't seem to enter the password.
Is there a way to send the password with Start-Process?
Thanks.