create function in powershell script code example Example: powershell function Function Function-Name ($argument) { }