And your thoughts of designing a language are probably a good idea, even if you don't implement it.  The exercise of designing a "script language" that can be proven to do what you want will reveal exactly what you need.  You might find there are slabs of code out there already that do a lot of the lower level stuff.  For Debian there is cl-aima for example. 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 |