Try quoting the argument list:
Start-Process -FilePath "C:\Program Files\MSBuild\test.exe" -ArgumentList "/genmsi/f $MySourceDirectory\src\Deployment\Installations.xml"
You can also provide the argument list as an array (comma separated args) but using a string is usually easier.
More Related Contents:
- how do I pass a range of values on the command line – passing an expression as an argument
- Running a powershell command using full path and arguments from command line [duplicate]
- How can I pass an argument to a PowerShell script?
- How to create a shortcut using PowerShell
- Visual studio code cmd error: Cannot be loaded because running scripts is disabled on this system
- Running CMD command in PowerShell
- Get-Aduser -Filter will not accept a variable
- In what scenario was Invoke-Expression designed to be used?
- Powershell executable isn’t outputting to STDOUT
- How to escape special characters in PowerShell?
- Function return value in PowerShell
- Read file line by line in PowerShell
- how do I loop through a line from a csv file in powershell
- Access PSObject property indirectly with variable
- How to remove all quotations mark in the csv file using powershell script?
- Is there a way to set a variable up to place output to stdout or null?
- Custom RoboCopy Progress Bar in PowerShell
- Executing an EXE file using a PowerShell script
- Set-Content appends a newline (line break, CRLF) at the end of my file
- Redirect Write-Host statements to a file
- How do I execute a PowerShell script automatically using Windows task scheduler?
- How to export data to CSV in PowerShell?
- Waiting for user input with a timeout
- Script has two variables when done, but when I pipe to SELECT-object only first one returns data to console
- Why do integers in PowerShell compare by digits?
- How can I find the source path of an executing script? [duplicate]
- ConvertTo-JSON an array with a single item
- Copy file with square brackets [ ] in the filename and use * wildcard
- Start-process raises an error when providing Credentials – possible bug
- Can you redirect Tee-Object to standard out?