This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read ApplicationLists.txt file | |
$apps = Get-Content ApplicationLists.txt -Encoding utf8 | |
# Establish Markdown table titles | |
$markdownTable = "| Name | ID | Version | Source | | |
|------|------|--------|--------|" | |
foreach ($line in $apps) { | |
# Ignore empty line | |
if ([string]::IsNullOrWhiteSpace($line)) { continue } | |
# Only process the correct format line | |
if ($line -match "^(.*?)\s{2,}(.*?)\s{2,}(.*?)\s{2,}(.*?)$") { |