Just dir no ${workspace}
dir
${workspace}
bat 'dir' in a pipeline script.
bat 'dir'
Select a "execute batch command" option and write the commands you want to execute in there.
Then check the console output of the build which was successful.