If you receive this error: "File C:\Support\GetInvalidImagePathV2.ps1 cannot be loaded because the execution of scripts is disabled on this system, etc, etc, etc..." when running the PowerShell script, it is because the ExecutionPolicy needs to be set to Unrestricted. This command works with both PoSH v1 and v2, it needs to be executed (as Administrator - or elevated PowerShell) to allow the script to run: Set-ExecutionPolicy unrestricted