It works for me in both cases even PSPad is open or not before you run command But I found a problem - when PSpad open file, it restore position and search starts from this position. It's wrong, search should start from the begin of file. Maybe it's your problem too, cause it looks like search doesn't work
-- <https://forum.pspad.com/read.php?4,76929,76933> PSPad freeware editor https://www.pspad.com