Set a path variable with spaces in the path in a Windows .cmd file or batch file - Stack Overflow
Try this; create a variable as below SET "SolutionDir=C:\Test projects\Automation tests\bin\Debug" Then replace the path with variable. Make sure to add quotes for starts and end vstest.console.exe "%SolutionDir%\Automation.Specs.dll"...