How to create and install a powershell command package using chocolatey?
Look at the PowerShell Function Reference, which has all of the different functions you can call. Then take a look, specifically, at the Install-ChocolateyPowershellCommand
helper. Here's an example of a package that installs a powershell script as a command (source).