Cannot retrieve value from key in ini-file

Hi,

I’m trying to read the value from a key in an ini-file, but it never works for keys in the first section.
Other keys in further sections can be retrieved without any issue.
Anyone who encountered this before?

ini-file sample:
[Settings]
DetailedLog=1
RunStatus=1
StatusPort=6090
StatusRefresh=10
Archive=1
LogFile=/opt/ecs/mvuser/MV_IPTel/log/MV_IPTel.log
Version=0.9 Build 4 Created July 11 2004 14:00
ServerName=Unknown
[FTP]
RunFTP=1
FTPPort=21
FTPDataPort=20
FTPDir=/opt/ecs/mvuser/MV_IPTel/data/FTPdata
FTP_TimeOut=5
EnableSU=1
SUUserName=mvuser
SUPassword=Avaya
[FTPS]
RunFTPS=0
FTPPort=990
FTPDataPort=889

Get-IniValue -FilePath $inifile -Section ‘Settings’ -Key ‘LogFile’
result:
[Installation] [Get-IniValue] :: Read INI Key: [Section = Settings] [Key = LogFile].
[Installation] [Get-IniValue] :: INI Key Value: [Section = Settings] [Key = LogFile] [Value = ].

Get-IniValue -FilePath $inifile -Section ‘FTP’ -Key ‘runftp’
result:
[Installation] [Get-IniValue] :: Read INI Key: [Section = FTP] [Key = runftp].
[Installation] [Get-IniValue] :: INI Key Value: [Section = FTP] [Key = runftp] [Value = 1].