Load configuration data from multiple file types. The returned Hashtable should have the same structure regardless of the source format.
Currently supported types:
Install-Module -Name Import-ConfigData
or Install-PSResource -Name Import-ConfigData
Return an object representing the contents of a PowerShell Data File.
#config.psd1
@{
DriveName = "data"
}
$config = Import-ConfigData -Path config.psd1
$config.DriveName
data
These config files all return the same PowerShell object.
#config.toml
DriveName = "data"
#config.yml
DriveName: data
{
"DriveName": "data"
}