Add publish/unpublish to cmdlets