The powershell4Polyfill.ps1 script has functionality missing in powershell 4 but exists in later versions.
powershell4Polyfill.ps1
Used as a polyfill to support missing functionality