Set Mac wallpaper via CLI

osascript -e 'tell application "System Events" to set picture of (reference to current desktop) to "/Users/dsadmin/Desktop/nettools/.background_10134.jpg"'

or if you need variables

osascript -e "tell application "System Events" to set picture of (reference to current desktop) to "$HOME/Desktop/nettools/.background_$swver.jpg""

escaping the quotes in the expression