You can't use secure commands. Putting aside the fact doing it as shown above will work a whole lot better, afaik you can only call secure cmds within DSOs.