wrap processasuser for console apps