I'm not too familiar with powershell either, I only use it when I have to. You could try running that command
Add-Type -AssemblyName System.Windows.Forms
$X = [System.Windows.Forms.Cursor]::Position.X
$Y = [System.Windows.Forms.Cursor]::Position.Y
Write-Output "X: $X | Y: $Y"
directly in powershell and see if you get the same error. This is when I run powershell through commandline:
![jthi_0-1646288103448.png jthi_0-1646288103448.png](https://community.jmp.com/t5/image/serverpage/image-id/40460iDC236E8C7A7803A9/image-size/medium?v=v2&px=400)
If I run the command by windows searching for powershell it seems to return similar error:
![jthi_1-1646288388895.png jthi_1-1646288388895.png](https://community.jmp.com/t5/image/serverpage/image-id/40461iCD51886FE8790237/image-size/medium?v=v2&px=400)
but if I run it again after the errors, it seems to return either string without coordinates or coordinates as it should.
-Jarmo