added Publish cmdlet,  fix to Publish method pass account groups as array