How to authorize scope for GAS to edit Google Spreadsheets
问题 I have a Powershell script that calls a Google App Script function. When I run the Powershell script I can see the following error on the Error Reporting on my GCP project: Exception: You do not have permission to call SpreadsheetApp.getActiveSpreadsheet. Required permissions: (https://www.googleapis.com/auth/spreadsheets.currentonly || https://www.googleapis.com/auth/spreadsheets) at toSpreadsheet (Código:3) at fromPS (Código:14) I have understood that I have to authorize the scope, so I've