Here you can find various parts of my PowerShell scripts, may they be useful to you
Reading the data from a JBD BMS via serial port
Commanding of a simple USB Relay from Amazon
Read the status of a shelly power measurement device
Upload content via SFTP
Create plot using gnuplot
Reading the Status of a Homematic Device and creating status webpage
Reading the Status of the Victron Cerbo