It is possible to do, but I would not use the network share to do it. You would want to deploy the software with the package.
If for whatever reason it has to be from the network share, your only option is to create a NUL share, which is a bad security practice and you should have your hands slapped.
I see you have a “pause” at the end, is this required? I would remove it.