You can do it without writing and deleting a file by using tar's feature to extract a single file, then streaming the result to standard output and piping it into the plutil command (pl=>property lists). Extra bonus, pipe that to grep, looking for the string "Version" showing only one line past the found pattern.
In the command below, replace YourIPAFile.ipa with the name of the ipa file you want to inspect and YourAppName.app with the name of the bundle executable in the Plist.info file. For me, using flutter, these two values were the same "Runner", but it's essentially the directory in the tar file where the info.plist file is located.
tar -zxvOf YourIPAFile.ipa Payload/YourAppName.app/Info.plist | plutil -convert xml1 -r -o - -- - | grep -A 1 Version
The output is:
x Payload/YourAppName.app/Info.plist
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
--
<key>CFBundleShortVersionString</key>
<string>1.0.5</string>
--
<key>CFBundleVersion</key>
<string>1</string>
--
<key>DTPlatformVersion</key>
<string>14.0</string>
--
<key>MinimumOSVersion</key>
<string>9.0</string>
Or more to the point:
tar -zxvOf YourIPAFile.ipa Payload/YourAppName.app/Info.plist | plutil -convert xml1 -r -o - -- - | grep -A 1 CFBundleVersion
x Payload/YourAppName.app/Info.plist
<key>CFBundleVersion</key>
<string>1</string>
or
tar -zxvOf YourIPAFile.ipa Payload/YourAppName.app/Info.plist | plutil -convert xml1 -r -o - -- - | grep -A 1 CFBundleShortVersion
x Payload/YourAppName.app/Info.plist
<key>CFBundleShortVersionString</key>
<string>1.0.5</string>