Skip to content

Instantly share code, notes, and snippets.

View JSarthurliao's full-sized avatar
:electron:
Collecting ideas…

JS_arthurliao JSarthurliao

:electron:
Collecting ideas…
View GitHub Profile
@JSarthurliao
JSarthurliao / ApplicationLists.ps1
Last active July 11, 2025 14:18
This code will help you to export all the installed apps from your Windows Terminal to a file call "ApplicationLists.txt"..(You can customize your export path.) Then you can use the second file call "ApplicationLists.ps1" to turn the txt scripts into a markdown table.
# 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,}(.*?)$") {