PowerShell/CrashCourse.md
2023-06-17 15:11:38 -06:00

666 B

PowerShell Scripting Crash Course

There are a few different ways to get started.

# Open the $PROFILE folder
explorer (Split-Path -Parent $PROFILE.CurrentUserAllHosts)
codium (Split-Path -Parent $PROFILE.CurrentUserAllHosts)
# Or start directly editing a script
notepad "$(Split-Path -Parent $PROFILE.CurrentUserAllHosts)\my-script.ps1"
codium "$(Split-Path -Parent $PROFILE.CurrentUserAllHosts)\my-script.ps1"

param

Read-Host

Paths and Items

If, For and While

See Also