What is the "correct" way of doing this? I know that functions are declared using "{", but I have not found any definitive for shell scripts.
Some IT professionals who use PowerShell regularly might think they know everything about the scripting language, but they'd be wrong. PowerShell has many undocumented or lesser-known features. You ...