Get List Of Functions From Script
<p>If I have a .ps1 file with the following functions</p>

<pre><code>function SomeFunction {}

function AnotherFunction {}
</code></pre>

<p>How can I get a list of all those functions and invoke them?</p>

<p>I'd like to do something like this:</p>

<pre><code>$functionsFromFile = Get-ListOfFunctions -Path 'C:\someScript.ps1'
foreach($function in $functionsFromFile)
{
   $function.Run() #SomeFunction and AnotherFunction execute
}
</code></pre>