Hi,
(if I understand this issue correctly) it also works for Windows:
OMD[test]:~/local/share/check_mk/agents/custom/Check-Test$ tree
.
└── lib
└── local
└── Check-Test.ps1
2 directories, 1 file
will go to C:\ProgramData\checkmk\agent\local\Check-Test.ps1