For the most part, these Helper Functions should "just" work. You can load the Chocolatey PowerShell Modules into your current PowerShell Session and make use of the Helper Functions.
In fact, there is actually a Chocolatey Extension that does just that, to help with the creation of Chocolatey Packages:
https://chocolatey.org/packages/chocolateypowershell
However, it should be noted that it is possible that some variables, and other things, used within these PowerShell functions might not be set correctly out with execution of Chocolatey itself. When executed, Chocolatey actually creates it's own PowerShell host, and sets things up the way that they need to be for successful execution. It could be that directly loading the PowerShell modules, doesn't set up everything that is required for all things to work exactly as they are intended.
Having said that, the simpler Helper Functions, for example the Install-ChocolateyPinnedTaskBarItem that you mentioned, should work fine.