This feature is currently not available in Lansweeper out of the box. We have added it to our customer wish list but we do not yet have a release date for it. We regularly update Lansweeper, equipping our software with new tools.
You could instead, like peewee suggested as well, implement a third-party tool or script in Lansweeper as an asset action or deployment package. Actions can be added under Configuration\Asset Pages and deployments in the Deployment tab.