I have a powershell script that I want to set some custom installer properties with. I am running a powershell custom action.

The code fails on the line below with the cmdlet "Get-Property" is not recognized.
$InstanceName = Get-Property -Name INSTANCENAME;

Based on the documentation, this is exactly how it should be done. I have set the property IS_PS_EXECUTIONPOLICY to Unrestricted. When you run the powershell CA there is not output so I cannot tell what is going on.

Any suggestions?