I have a file with all my cmdlets that I use throughout the script that is separate from my main application file. I'm not sure how PowerShell Studio 2012 packages everything together, do I need to dot source the library file? If so, what's the directory? Is there some option I need to select when packaging?
When I run the application once it's been bundled off to an .exe file, I call the executable, which has a call to a cmdlet named "test" in my library file. This is the output I get when I run the executable that PowerShell Studio creates:
Code: Select all
ERROR: The term 'test' is not recognized as the name of a cmdlet, function, script fil ERROR: e, or operable program. Check the spelling of the name, or if a path was includ ERROR: ed, verify that the path is correct and try again. ERROR: At line:38 char:6 ERROR: + test <<<< ERROR: + CategoryInfo : ObjectNotFound: (test:String) , CommandNotFoun ERROR: dException ERROR: + FullyQualifiedErrorId : CommandNotFoundException ERROR: