title: Is jenkins somehow running powershell step with the -noprofile param?
body: <p>I want to customize the profile of the PS sessions jenkins runs</p>
  
  <p>I copied my profile to pretty much every possible location and ran this in a pipeline to confirm its there and its contents are correct: </p>
  
  <pre><code>powershell 'cat $PsHome\\Profile.ps1'
  </code></pre>
  
  <p>In the profile I set some aliases and environment variables</p>
  
  <p>In powershell steps though if I check the aliases list and env vars I dont see the changes my profile contains:</p>
  
  <pre><code>powershell 'ls alias:'
  powershell 'ls env:'
  </code></pre>
  
  <p>It doesn't look like jenkins is running powershell with -noprofile: <a href="https://github.com/jenkinsci/powershell-plugin/blob/d3e8aec4074bdfa5f5032c71a3e6ba4a3c6c8340/src/main/java/hudson/plugins/powershell/PowerShell.java" rel="nofollow noreferrer">https://github.com/jenkinsci/powershell-plugin/blob/d3e8aec4074bdfa5f5032c71a3e6ba4a3c6c8340/src/main/java/hudson/plugins/powershell/PowerShell.java</a></p>
  
  <p>Why isn't my profile being executed?</p>