How to run an EXE file in PowerShell with parameters with spaces and quotes
问题 How do you run the following command in PowerShell? C:\\Program Files\\IIS\\Microsoft Web Deploy\\msdeploy.exe -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\" 回答1: When PowerShell sees a command starting with a string it just evaluates the string