Continuing from where I left off in my previous article on PowerShell parameters where I talked about defining the types and naming considerations, we will now take a look at some useful attributes ...
前回はPowerShell Coreの機能として関数を取り上げるとともに、関数名の付け方と、関数に与える引数であるパラメータの使い方を紹介した。PowerShell Coreのコマンドレットはパラメータを指定することで挙動を変更することができる。これは関数でも同様だ。
Business.com on MSN

Understanding functions in PowerShell

Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
There are times when we all get lazy as we're writing PowerShell scripts. Maybe it's because it's the end of the day and we're just shot. We're tired and just don't care as much about our code as we ...