I hoped this code from page 549 of Nathan's "Windows 8 Apps with XAML and C#":
//string xmlString = @"<badge value='2'/>";
string xmlString = string.Format(@"<badge value={0}/>", 42);
XmlDocument document = new XmlDocument();
document.LoadXml(xmlString);
BadgeNotification notification = new BadgeNotification(document);
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(notification);
...would also work for WP8, but many of the classes are unrecognized in my WP8 ScheduledTaskAgent, namely XmlDocument, BadgeNotification, and BadgeUpdateManager.
How can I accomplish the same thing in WP8 from my ScheduledTaskAgent?