title: Powershell : Executing custom function on remote servers
body: <p>i have custom functions list, and another config file that is going to be used by the functions, my goal is to run those functions on remote servers, considering that some functions call other function from within them that's why i can't use the method below to call functions that are loaded in the local session.</p>
  
  <pre><code>invoke-command -scriptblock ${function:foo}
  </code></pre>
  
  <p>is it possible to make a module out of it and then make that module get imported automatically on system boot rather than user logon.
  any suggestions on how to accomplish the main goal ?</p>