Your First Script

A script is a .ps1 file of commands that run from top to bottom, with comments starting with # that say what it does, and you run it from its own folder with .\\ and its name, because PowerShell never looks in the current folder for a command on its own.

Updated

Cheat sheet for the lesson Your First Script: A script is a .ps1 file of commands that run from top to bottom, with comments starting with # that say what it does, and you run it from its own folder with .\\ and its name, because PowerShell never looks in the current folder for a command on its own.
Category
PowerShell
Level
Apprentice
Tags
comment, Current Directory, get-psdrive, powershell, script-file