https://1drv.ms/f/s!ApGpqMMpRLhiiv4zoZRIXcnbIInsLQAfter downloading XKestTest.zip, right click on the zip and under properties select Unblock. Then unzip somewhere.
You need to run the 32bit version of "PowerShell ISE (x86)" which you should find by typing that in from the Windows Key search. (I can create a 64bit version but I use this on a little PiPo 32bit machine).
The following script should confirm that PowerShell can see the device. Copy this into a new script window in ISE)
add-type -path 'C:\Path to where you unzip the files above\VISE_Xkeys.dll'
$XKeys = new-object VISE_Xkeys.xkeys
$keys = $Xkeys.GetDevices()
$keys #this should print out some information about the device
$xkeysActiveDevice = $Keys[0].DeviceID
$XKeys.NewDevice($xkeysActiveDevice)
#Shour show True if command above worked.
#create event to display when switch # is closed
Unregister-Event -SourceIdentifier KeyPressed -ErrorAction SilentlyContinue
$MyEvent = Register-ObjectEvent -InputObject $Xkeys -EventName KeyPressed -SourceIdentifier KeyPressed -Action {write-host $event.sourceEventArgs.KeyID}
#script now waits for key/switch event
#We can add the ATEM stuff after we know this works.