title: Running a powershell .ps1 script without loading any profile
body: <p>I am trying to  run powershell script version 5.1 in windows 2012R2</p>
  
  <p>powershell.exe -NoProfile D:\test2.ps1 on the powershell command  console (I do not the script session using any profile on the system)</p>
  
  <h2>Now I am checking in the test.ps1 script what  profile is loaded in test.ps1 script</h2>
  
  <p>$profile</p>
  
  <hr>
  
  <p>I get output 
  <strong>C:\Users\XXXXX\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1</strong></p>
  
  <p>Any thought why any profile start up in my session.</p>