Create test-env.sh

Create a temporary directory and execute a shell or the command given as arguments there.