Turn Powershell Script Into Function Examples