Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8947569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:47:49+00:00 2026-06-15T12:47:49+00:00

If I have imported moduleFoo to my script in which there is a function

  • 0

If I have imported moduleFoo to my script in which there is a function Bar().

Can I call this function somehow like:

moduleFoo.Bar

instead of

Bar

So that the person reading the script can understand from which module this Bar is called?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:47:50+00:00Added an answer on June 15, 2026 at 12:47 pm

    You can give to your function name like:

    moduleFoo.Bar # prefixing each function in your module with the module name + .
    

    but this is not respecting the standard powershell naming convention for function or cmdlet (verb-noum).

    You can also create alias that prefix the function/cmdlet with modulefoo.

    If you only need to know the name of the module to which the function/cmdlet belongs you can use:

    (gcm bar).Modulename
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have imported module ModuleFoo.psm1 to my script: ModuleBar.ps1 And I call a method
I have this XML file that I have imported into Cocoa and want to
I have imported a JSF/Facelets project from SVN into Netbeans. Any change which I
I have imported my database by script from live site to my local server.
Can MlPy / SciPy be used on GAE? I believe I have imported NumPy
I have imported a plain-text version of PDF using a Python script, but it
I have imported the ShockWave flash Activex Control in my Delphi project. I can
I have imported the kernel32 library. So, I have the createMutex function available but
I have imported project with Maven. But Subclipse didn't recognize that project already in
I have imported a stored procedure that returns a dataset into my Entity Framework.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.