Fix add dba ag database seeding mode (#5774)
Fix add dba ag database seeding mode (#5774)

* Added version check

Added a version check and some error handling for SQL Server 2016 - this should prevent an error on SQL 2014 and prevent the use of Automatic Seeding for those servers - if no $sharedpath is provided the loop breaks onto the next server

* Altered error text

Altered error text

* Update functions/Add-DbaAgDatabase.ps1

* Changed to use -not

Changed to use -not

* Removed Break

Removed Break

* formatting

* bug fixes and catches

kozloski/dbatools,wsmelton/dbatools,Splaxi/dbatools