I'd like to use Google Apps Script to do insert a linked table from Google Sheets into a Google Document.
I'm aware that this is easily done manually using Copy > Paste > Link to Spreadsheet.
But is there a way to do this programmatically using Apps Script?