Currently, you can only use the .get() function to access the collection level values. You’re not able to use the .set() function within the prerequest/test scripts. Hence the reason why the manual setting of these variables, was offered as the solution.
There is an open issue for that enhancement, over on GitHub.