Custom dedicated server commands in console window

your likely better off making an Rcon type thing where your server listens on a certain port for commands, then from a program you can use or write yourself send those commands to the server on the right port to the right address with the correct credentials. This will allow remote access to those functions down the line rather then only being able to use the console window.