Running Shell Command in Background / Silently

Just FYI, this hacky solution turned out to not be an efficient/effective/reliable way to tackle this use case. Ended up getting errors and reverted back to keyboard shortcuts - which have been working great for the past 3 years to be honest. I was just trying to see if there was a superior way of achieving this.