I would like to convert the below code from onEdit to run with custom menu. So if criteria met when I press my custom script inside menu - it will run the code.
function UpdateInventory(e){
var sh=e.range.getSheet();
if(sh.getName()!='InComing Donations')return
if(e.range.columnStart==11 && e.value=="TRUE") {
var tsh=e.source.getSheetByName("RECTOONLINE");
var trg=tsh.getRange(tsh.getLastRow()+1,1);
sh.getRange(e.range.rowStart,1,1,8).copyTo(trg);
}}
Thanks in Advance