Take out the brackets. They are there to indicate optional parameters.

/script RollOnLoot(1, 2)
/script ConfirmLootRoll(1, 2)