Updated script to use splatting and removed usage of back ticks.