A public function is a module function intended for direct use by module users. Place its .ps1 file in the module's Public folder to signal that it belongs to the usable module interface. section 2.2.3
Design public functions for discoverability and maintainability:
- Use approved Verb-Noun names, singular nouns, Pascal casing for module and parameter names, and descriptive variable names. section 2.2.3
- Separate public functions from private helper functions; helpers support module behavior but should not require direct user calls. section 2.2.3
