If I understand you correctly your scenario is to execute JustMock tests from a build script or command line? If this is the case, you are on the right path. But please have in mind that those environment variables should be set to the process that will execute the tests.
With other words, if you are doing this from build script apply the environment variables before executing the tests. I will also recommend you to check this Windows Batch Command
article if you haven't done already.
Please have in mind that if you are executing a code coverage tool or another tool that works with profiler you will need to enable the integration with JustMock. This could be done just once for the build server by opening the Telerik.JustMock.Configuration.exe located at the Library folder under the JustMock installation folder.
If for some reason this does not work for you please provide more detailed information on your exact scenario.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items