Shell to Remove Mac Dock Icons

I currently have a very simply script that uses Dockutil (pre-installed on client) that should remove dock Icons from the Apple Dock. The shell script runs just fine on a test mac that I have, however if I try and copy the same series of commands from the working shell script to big fix, the icons remain. Anyone ever had success with doing anything like this.

Example of Script

#!/bin/sh
killall Dock
sudo /usr/bin/dockutil --remove ‘Microsoft Word’ --allhomes

I have the BigFix TASK script type as a “sh” with no other options or advanced features enabled. Any help would be appreciated.