"interactive password authentication" means "password typed by a human being in realtime authentication" and no substitutes for human will do. This is intentional. It prevents the old-fashioned and very insecure habit of dropping important passwords in script files. No modern login method, be it ssh, su, or sudo, will accept passwords passed this way without severe coercion and exploitation.
The proper method for noninteractive authentication is passwordless, i.e. keys.