source wants a filename that will then be executed/loaded, so depending on where the cloud-function is defined, you need to source that file. This is all in the case of MEL scripts btw, for Python you have to do it differently - either use the python() function in the userSetup.mel or make a userSetup.py as passerby…