filelock
is a program that keeps the file specified by its first argument in use until EOF is encountered on standard input.
it was created for testing file locking.
Download the binary package from Releases and extract the executable.
scoop install https://raw.githubusercontent.com/hymkor/filelock/master/filelock.json
or
scoop bucket add hymkor https://github.com/hymkor/scoop-bucket
scoop install filelock