So, I was curious about how I could push down a static route from my pfSense router (and it looks to also work for OpnSense as well under Services --> DHCPv4) to my work vlan for another network (my work's lab network (i.e. where some machines that I have are at, because we use them for hacking labs/classes normally (essentially they are more vulnerable devices, so I wanted them on another vlan to where they could talk out but not back to my work (unless initiated from work vlan))))

So, I stumbled across this reddit post: https://www.reddit.com/r/PFSENSE/comments/5ei112/dhcpoptions_pushing_a_static_route/
which then led me to this blog post: https://ercpe.de/blog/advanced-dhcp-options-pushing-static-routes-to-clients#classless-static-routing
talking about converting the necessary values to hex (contrary to the post's pictures you need lower case hex not uppercase at least on 2.4.4-RELEASE-p2 of pfSense). So, below is a quick script that I threw together to convert the necessary value in the proper format.
So as an example say my work lab network's info is 192.168.22.1/24 and my work network is 10.0.0.1/16
So, in that example I gave you can do the following
pfsense-route_hex.sh 24 '192.168.22.0' '10.0.0.1'

Also, make sure you use the 121 dhcp option and I am sure opnsense has something similar.

Lastly, you should also be able to curl right to bash (I know, before you comment on how this is bad look here: /curl-bad) like this.

curl -fsSL 'https://git.io/Jvpvi' | bash -s '24' '192.168.22.0' '10.0.0.1'