In my config.xml file is:
<Settings>
<Prog>notepad.exe</Prog>
</Settings>
in my PS script is:
$settings = @{
Program = $ConfigFile.Settings.Prog
}
#try run it
& $settings.Program
WARNING: The term 'notepad.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Why this error occurs?