You can create custom widgets, however these traditionally use data from the database. If you're capable enough to make this work with powershell, that would be awesome. Personally I've not tried it yet.
You can find some documentation about it here: https://www.lansweeper.com/knowledgebase/how-to-create-custom-widgets/
You would either have to run the script as a deployment or an asset action. Both of which do not write data to the database, meaning you can't report on the result. To report on it you would have to run it and somehow write the result to the database yourself.