Hi,
Im guessing that you probably already solved this one, but Im answering anyway for future reference.
Epicor 9 doesnt respond to the the "message ... view-as alert-box" command. To get a dialogbox you can use the following which should work for all versions of Epicor 9:
{lib/PublishEx.i...