I have created a Powershell function that uses the Backup-DBADatabase in the DBATools module. It has some additional logic to create a framework for others to use consistently a