PowerShell
I keep forgetting how to do everything
I keep forgetting how to do everything
powershell -ExecutionPolicy ByPass -eq Equal == -ne Not equal != -ge Greater than or equal >= -gt Greater than > -le Less than or equal <= -lt Less than <do { #stuff} while (condition)while (condition) { #stuff}Get-ChildItem '.\name' -Filter '*.txt' | [Do this action with each item that matches] (alias: ls, dir)if ($input -eq true){ #stuff}switch ($input){ m {'Good morning!'} a {'Good afternoon!'} e {'Good evening!'} default {'Hello!'}}