In the following PowerShell v2.0 script, the command & is not executed :
$SqlPackageExe = "C:\Program Files (x86)\Microsoft SQL Server\120\DAC\bin\sqlpackage.exe"
Write-Host "Before SqlPackage"
& "$SqlPackageExe" /Action:Publish $SqlPackageParameters
Write-Host "After SqlPackage"
On the console output, I see : Before SqlPackage After SqlPackage
I have no error, no log, nothing of the SqlPackage.exe. What's happen ? My command "& "$SqlPackageExe" /Action:Publish $SqlPackageParameters" works a first time, a second time (database is deployed), and then stops working. If I close the PowerShell session and open a new PowerShell session, the command works several times, then stops working.
Thank you for your help