Turns out setting an alarm from the command line is now extremely simple thanks to PMs executeAction method. Was that always there?