CmdID / PowerShell / Cmdlets / Get
Get-WebConfigFile
Gets the file system path of the web.config file. Windows Server PowerShell reference
From the Windows Server PowerShell reference 1 parameter Its page in the reference
Parameters
-PSPathSpecifies the IIS module namespace path to the site that contains the Web.config file.