
Explanation:
See the answer in image

Box 1: Windows Feature
Example:
Configuration Website Test {
# Import the module that contains the resources we're using.
Import-Disc Resource -Module Name Ps Desired State Configuration
# The Node statement specifies which targets this configuration will be applied to.
Node 'localhost' {
# The first resource block ensures that the Web-Server (IIS) feature is enabled.
Windows Feature Web Server {
Ensure = "Present"
Name = "Web-Server"
}
Box 2: File
Example continued:
# The second resource block ensures that the website content copied to the website root folder.
File Website Content {
Ensure = 'Present'
Source Path = 'c:\test\index.htm'
Destination Path = 'c:\inetpub \wwwroot'
}
Reference:
https://docs.microsoft.com/en-us/powershell/scripting/dsc/quickstarts/website-quickstart