In the powershell ISE we can run the cmdlets which are loaded from the modules defined in the script . But the same script is not working from the powershell console.
Please let me know how to make it work in console same as ISE.
Thanks,
One thing to check out is your profile script. The ISE and the Console use different filespecs for the profile script. You can edit the profile script using your favorite editor, like this:
> notepad $profile
If your ISE $profile defines some things that your Console $profile does not, then that may be the reason for the different behavior.
Import-Module
cmdlet to load them in the shell? What modules are you talking about?