Powershell: How To Write A Function