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

[ad_1]

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

[ad_2]

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