Welcome to our community!
Your best bet would be to use something like cron to run the script, store the output in a file, then use Filebeat to read that and send to Elasticsearch. Though because this is a custom source, you won't have a module that can handle it.
Once the data is in Elasticsearch, you can use the default filebeat-*
pattern to view the data and create visualisations.
To get you used to the dashboarding, you can try enabling one of the modules (eg system) and then see how it does things, and copy them from there.