Where to store and call custom functions?

Product: PowerShell Universal
Version: Latest

This is probably a dumb question, but I am having a difficult time understanding where I should store my custom functions that other scripts reference by calling and passing in parameters. Typically I would have my functions in a .psm1 file on a network drive and then import-module in each of the referencing scripts. When I try to create a script in PSU it gives me a 405 error I think because it doesn’t like that I am adding a function?

PSM1 files should be fine. Modules are supported. You could add your PSM1 to C:\ProgramData\UniversalAutomation\Repository.

Then, in your scripts you can import them via:

Import-Module "$PSScriptRoot\MyModule.psm1"

I’d be curious as to the steps you took to see the 405 error.