Hello there,
You can run .exe files in PowerShell using three different methods:
Typing “.\” followed by the name of the file
Using Invoke-Expression
Using Start-Process cmdlet
Start-Process -NoNewWindow -FilePath "Locatiom.exe" -ArgumentList "-verb:sync","-source:dbfullsql="Data Source=mysource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;
"","-dest:dbfullsql="Data Source=.\mydestsource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;
"","computername=10.10.10.10","username=administrator","password=adminpass"
If you need to do this during the start up you can try the task scheduler.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–