How to run processing sketch automatic when my PC is Shuting Up

besides processing is a graphic app it also has a command line start
Command Line · processing/processing Wiki · GitHub ,

also for both way to start processing,
to do a

autostart at boot

might depend very much on the OS.