Running Management Console script throws 'try' and 'catch' errors