async callAsync( name, ...params ) {

		const object = this.getObject();
		const method = object[ name ];

		if ( typeof method === 'function' ) {

			return method.constructor.name === 'AsyncFunction' ? await method( ...params ) : method( ...params );

		}

	}
Asynchronously calls a function from the script.

@param {string} name - The function name.
@param {...any} params - A list of parameters.
@return {Promise<any>} The result of the function call.