Any command line switches would be application specific, so you would need to search the documentation for that program or contact the vendor's support team.
The best solution is to ask the vendor if they have a command line version of that program. Running GUI's in task scheduler can be problematic because they were developed to interact with a user as opposed to a background/batch type process.
Having said that, with Powershell you can try using SendKeys to mimic keystrokes. The problem is that you can't "read the screen". So you would need to add a sleep cmdlet for some time to let the program execute.
https://newbedev.com/sendkeys-method-in-powershell
https://www.dorkbrain.com/docs/2017/09/02/sendkeys-in-powershell/
Here is a sample script.
function wait {
param([int]$stop = 3)
Start-Sleep -seconds $stop
}
function SendWait {
param([string]$keys)
[System.Windows.Forms.SendKeys]::SendWait($keys)
}
add-type -AssemblyName microsoft.VisualBasic
add-type -AssemblyName System.Windows.Forms
$rdp = Start-Process mstsc.exe -PassThru # launch a GUI
wait
[Microsoft.VisualBasic.Interaction]::AppActivate($rdp.ID)
SendWait("ABCDEFGHIJKLM") # type in a machine name
wait
SendWait("{TAB}{TAB}") # tab to the connect button
wait
SendWait("{ENTER}") # try to connect
wait 5
SendWait("{ENTER}") # close the popup
wait
SendWait("%{F4}") # close the program alt+F4