Create new folders in the current directory

What is the current working directory in each case?

The current working directory for a script executed by Keyboard Maestro is undefined. Try:

cd ~
mkdir {test1,test2,test3}

or the equivalent.