Allow any kind of script to be ran in init/shutdown

Ticket:	#3057
Merge:	releng/9.1.0
(cherry picked from commit 78fb2293975a5443cd4e283ecf1aad4ab528a1ad)