title: Is there a way to make a PowerShell script work by double clicking a .ps1 file?
body: <p>I am distributing a PowerShell script to my team. The script is to fetch an IP address from the Vsphere client, make an mstsc connection, and log it in a shared file.</p>
  
  <p>The moment they used the script they got to know the IP address of machine. After that, they always tend to use mstsc directly instead of running the PowerShell script.
  (As they are using mstsc I am not able to know whether they are using the VM frequently or not.)</p>
  
  <p>Mainly they are telling me that running PowerShell is not straightforward.</p>
  
  <p>I am sick by their laziness.</p>
  
  <p>Is there a way to make a PowerShell script work by double clicking a .ps1 file?</p>