title: PowerShell Import-Module vs Dot Sourcing
body: <p>If I want to separate out some of my functionality from my main PowerShell script, I can either write that as a <code>.ps1</code> file and dot source the same or I can create that as a <code>.psm1</code> and import the same using <code>Import-Module</code>.</p>
  
  <p>Which one is better and why?</p>