How to generate Unreal visual studio solution files into specific folders

I am on Windows 10 and Unreal 4.15

When I right click Unreal project to generate visual studio solution files, there is no option to change output directory and it always goes to the same folder as the project file, which means the source files and the build files are mixed together. For traditional C++ projects where the build files are generated by CMake, we can do something like

mkdir build
cd build
cmake -A x64 …
msbuild test.sln

The build files and source files are separated. Is it possible to do this kind of good practice for Unreal Projects? Below is the command line I am currently using to generate the build files for Unreal

UnrealBuildTool.exe -projectfiles -project=“%WORKSPACE%/projectname/projectname.uproject” -game -rocket -progress