Here is what I want to achieve:
I want to delete n rows from my Google Sheet. This n can vary depending on the number of incorrect entries inserted in the document. (I know this number before running the function). And I want to give myself the flexibility to choose this number (just like console input in C, C++ or other languages).
Some researching shows a solution via SpreadsheetApp.getUi(). But it is giving me the error: Exception: Cannot call SpreadsheetApp.getUi() from this context.
I don't want to open my spreadsheet as it is huge in size & takes time to load. The purpose of deleting rows pragmatically is that I don't have to open it, else its all a moot point.
Another solution could be to just create an variable and change is manually before running script. But it could create bad data if I forget to change that variable someday. (I want to make it idiot-proof).
Is there any way to get user input for a standalone Google Apps Script without opening that particular Google Sheet?

