I\'ve just tested this on PowerShell v1.0. Setup is as follows:
Id CommandLine -- ----------- 1 $msbuild = \"C:\\Windows\\Microsoft.NET\\Framework\\v3.5\
That works well for me:
PS> cmd.exe /c 'C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe' /target:Clean /target:Build 'C:\some\project\or\other\src\Solution.sln'