Creates a temporary file, writes the provided script content into it and returns the file name.
Useful links