PowerShell

Windows CLI Workflows & Scripting

⚙️ Core Commands

CommandPurpose
Get-ProcessList running processes
Get-ServiceView service status
Get-EventLog -LogName SystemRead system event logs
Get-CommandList available cmdlets
Get-Help Get-ProcessView help for a specific command

📁 File & System Tasks

CommandPurpose
Get-ChildItemList files and folders
Copy-ItemCopy files or folders
Remove-ItemDelete files or folders
Set-ExecutionPolicy RemoteSignedAllow script execution
Test-ConnectionPing a host (like ping)

🧠 Scripting Basics

SyntaxPurpose
$name = "Huffle"Define a variable
if ($name -eq "Huffle") { }Conditional logic
foreach ($item in $list) { }Loop through items
Function Get-Overlay { }Create a custom function
Write-Output "Hello World"Print to console