For those interested in exploring the LND REST API to your lightning node. Check out BTCpay, a set of scripts that implements it.
Although, its PowerShell it is implemented and only running on Linux at this time.

Although, its PowerShell it is implemented and only running on Linux at this time.

Automating BTCPAY Server and LND with REST API
Installing and Automating BTCPAY Server