0x80070002 is "file not found". You may need to specify the full path to the executable.
Use a .bat file to execute your program and configure the task to capture stdout and stderr into a log file. Then review the log for errors.
Modify the task action like this example. Use your file/folder names.
cmd.exe /c c:\Scripts\Test.bat 1>c:\Scripts\Logs\Test.log 2>&1
Set the task to execute as the desired user.
If you want the task to only execute when the user is logged on, select "run only when the user is logged on". You will not need to enter a password, and when the task executes it's window will be visible on the desktop.
If you want the task to execute no matter who is logged on to the desktop, select "run whether the user is logged on or not". You typically would enter a password, and when the task executes it's window will NOT be visible on the desktop. Mapped network drives may not be mapped, you should use UNC path notation, \\ServerName\ShareName\FolderName. Do NOT run GUI programs like Excel in this configuration. If the task does not need to access network resources, then you can optionally set "do not store password".