Function test() is not defined in current scope. I need help!

Running the file on lxplus with the version you specify seems to be working when I try. You could perhaps run it there?

I’m afraid I cannot give you more assistance on windows.