Make sure you're using the correct return statement and formatting for your Office Script. Return [value1, value2]; is the only way to explicitly return arrays, not just log them or declare them.