Powershell Assign Function To Variable Resistor