PowerShell Script for Sage 50 ODBC

The format of a PowerShell script to add an ODBC data source for a Sage 50 company is (a single line):

Add-OdbcDsn -Name "SageTestV22" -DriverName "Sage Line 50 v22" -DsnType "System" -Platform "32-bit" -SetPropertyValue "DataPathname=C:\ProgramData\Sage\Accounts\2016\Company.000\ACCDATA"