Create a webpage with custom fields

PHOTO EMBED

Thu Jan 12 2023 18:45:28 GMT+0000 (Coordinated Universal Time)

Saved by @savabeh191

### set the variable fields
$webData = @{
	name = "John Smith"
	type = "Beer"
	price = '8.99'
}

$htmlPage ="
<html>
<head>
<title>$($webData.name)'s Web Page!</title>
</head>
<body>
<{0}>Welcome to $($webData.name)'s web Page!</{0}>
This means he can buy $($webData.type) for $($webData.price)!
<p>
Current Date and Time: $($(Get-Date -format f))
<p>
</body>
</htm1>
" -f 'h1'

$file="C:\\Users\\nfgom\\Downloads\\test.html"
Set-content -Path $file -Value $htmlPage
Invoke-Item $file
content_copyCOPY