This directory contains:
helloworld.ps1: a basic PowerShell script that writes Hello, World!HelloWorld.psm1: a small module exporting Write-HelloWorldMain.ps1: a module-based example that imports the module and prints the messageWriteHelloWorld.ps1: function definition dot-sourced by the moduleFrom the repository root:
powershell -ExecutionPolicy Bypass -File .\powershell\helloworld.ps1
powershell -ExecutionPolicy Bypass -Command "& { Set-Location .\powershell; .\Main.ps1 }"
The basic script pauses for input before closing. The module-based example is the one used by the root smoke check.