Start by doing a simple internet search and try some of the examples and see what fits for your environment.
https://www.bing.com/search?q=powershell+monitor+server
Or contact Hetzner Cloud support and ask them what monitoring options they provide to customers.