Run job through code using action menu item in MSD axapta

Run job through code using action menu item in axapta


 Args args;  
 ;  
 args = new Args();  
 args.name(identifierStr(Jobs_MyJob));  
 new menuFunction(menuItemActionStr(Jobs_MyJob), MenuItemType::Action).run(args);