I\'ve just tested this on PowerShell v1.0. Setup is as follows:
Id CommandLine -- ----------- 1 $msbuild = \"C:\\Windows\\Microsoft.NET\\Framework\\v3.5\
Ugh.
$collectionOfArgs = @("C:\some\project\or\other\src\Solution.sln", "/target:Clean", "/target:Build") & $msbuild $collectionOfArgs
This works. & takes a collection of arguments, so you must split up strings containing multiple arguments into a collection of string arguments.