title: Finding out required Powershell Version
body: <p>I wrote a PS-Script for a colleague and it did not work the first time on his machine (after installing PS 4 it is working).</p>
  
  <p>As we are not globally rolling out the most recent PS Version, and my next Script would affect several people, I want to write it in a Low-Version-Compatible format.</p>
  
  <p>Is there a way to check (or an IDE) which determines the needed version for a command or the whole script?</p>
  
  <p>Thanks in advance :)</p>