Command-line way to convert plain AppleScript file to Automator application?

To convert plain AppleScript file to a droplet, I can use

osacompile -o foo.app foo.applescript

My question: is it possible to use osacompile (or maybe there is another way, using command line) to convert plain AppleScript file (such as shown below) to Automator application instead?

on run {input, parameters}
	
	(* Your script goes here *)
	
	return input
end run

c28f4e7e8afa52043153396f5bdab8b5f9c30a1a