The outlaw message is probably faction dependent, so you may need something in the script to identify which faction is being outlawed. Not sure if that could be part of the same console command (such as "console_command test_message outlawed faction = romans_julii" or something) or an event monitor wrapped around the console command.

Not at my RTW computer right now so I can't test this out...