Calling flash function from java or command prompt

Is’t possible to call flash functions from command prompt or from java(no jsp)?

thanks