psshutdown works in console, but not as batch script

Banqu0

Distinguished
Mar 11, 2015
108
1
18,695
I'm attempting to remote shutdown a computer via PSTools, but so far I am only able to get the command to work via command console. A batch file is preferable, because it can be hotkeyed to a keyboard shortcut.

The syntax here has been unclear and I have used information in other threads to point me in the right direction. Most times, the script does nothing, but :

C++:
@echo off
start C:\PROGRAM_BIN\PSTools\psshutdown.exe /psshutdown \\REMOTECOMPUTERNAME -k -f -t 00
exit

actually shutdown the computer I'm trying to launch the command from. But,

C++:
C\PROGRAM_BIN\PSTools>psshutdown \\REMOTECOMPUTERNAME -k -f -t oo

in command console works fine. Can anyone who has a better understanding of script syntax tell me what I'm doing wrong?