0

In the powershell scripts, I can give parameters from one script to another by using the $parameter variable and add the following to the top of the script: param([hashtable]$parameters = @{})

One of my files does not have the ending .ps1, it ends with .psm1. Can you tell me why this is another format and what i need to do to get the parameters working like in the other scripts?

Thanks

  • http://stackoverflow.com/questions/5103211/when-to-choose-developpment-of-a-powershell-module-over-powershell-script – Raf Jun 20 '14 at 11:10
  • Thanks, that explains the module, but not why i can't use the $parameters?! – user3759868 Jun 20 '14 at 11:41

0 Answers0