Usually I suggest just using the parameters for data transfer.
Get-MyData -connectionstring $connectionString -table Test ...
If this is impractical (too many parameters, etc.), then you can always specify the path to the configuration file using the parameter:
Get-MyData -Config .\My.config
Then you can read the specified configuration file from the cmdlet.
This allows cmdlet users to define their own configuration files for use.