I would suggest opening a PowerShell windows and then running the script from there so you can see what happens. Please note that you will have to prefix the script name with .\ or ./ since Powershell by default does not run anything from the local directory.
I did a quick test and created a directory called Test on my desktop (Windows 11 24H2), copied install.ps1 and tried running it which obviously failed, unblocked it and tried running it again which told me no packages available. I then copied the OCP-Plato-0.9.44_KOReader-v2024.11.zip file to the Test directory without connecting a Kobo ereader which gave the can't find error message. Finally I connect my KLC and ran ./install.ps1 for 4th time. It came up with the install screen, I typed 0 to say use the Plato/KOReader package and the install went happily. So I would have to say the script is working as designed.
Code:
PS C:\Users\user\desktop\test> pwsh --version
PowerShell 7.4.6
PS C:\Users\user\desktop\test> dir
Directory: C:\Users\user\desktop\test
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2025-01-10 8:48 PM 4525 install.ps1
PS C:\Users\user\desktop\test> ./install.ps1
./install.ps1 : File C:\Users\user\desktop\test\install.ps1 cannot be loaded. The file C:\Users\user\desktop\test\install.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ./install.ps1
+ ~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
<right clicked install.ps1, clicked on unblock and then OK>
PS C:\Users\user\desktop\test> ./install.ps1
No supported packages found in the current directory (C:\Users\user\desktop\test)!
* Nothing to do! Press Enter to exit:
<copied OCP-Plato-0.9.44_KOReader-v2024.11.zip to the Test directory>
PS C:\Users\user\desktop\test> dir
Directory: C:\Users\user\desktop\test
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2025-01-10 8:48 PM 4525 install.ps1
-a---- 2025-01-10 8:50 PM 67394613 OCP-Plato-0.9.44_KOReader-v2024.11.zip
PS C:\Users\user\desktop\test> ./install.ps1
Couldn't find a Kobo eReader volume! Is one actually mounted?
* Nothing to do! Press Enter to exit:
<connected Kobo ereader and tried again>
PS C:\Users\user\desktop\test> ./install.ps1
* Here are the available packages:
0: OCP-Plato-0.9.44_KOReader-v2024.11.zip
* Enter the number corresponding to the one you want to install: 0
* Preventing Nickel from scanning hidden directories . . .
* Installing OCP-Plato-0.9.44_KOReader-v2024.11.zip . . .
* Installation successful!
* Please make sure to unplug your device safely!
Press Enter to exit: