[Solved] How to copy the source of function to another one in Powershell?


If you are asking how to copy the content of one function into another:

function function1 {
  "function output"
}

$Function:function2 = $Function:function1

Get-Content Function:function2
# output: "function output"

3

solved How to copy the source of function to another one in Powershell?