Develop a Python script that interacts with AWS Lambda to create a new Lambda function, upload code to it, and invoke the function with specified input parameters. The Lambda function should return the square of the input number.

To create a Python script that interacts with AWS Lambda, you'll need to install the `boto3` library first. You can do this by running:

```bash
pip install boto3
```

Now, let's create a simple Python script that creates a new Lambda function, uploads code to it, and invokes the function with specified input parameters.

```python
import boto3
import json
import zipfile
import io

# Replace these values with your own AWS credentials and region
aws_access_key_id = 'YOUR_AWS_ACCESS_KEY_ID'
aws_secret_access_key = 'YOUR_AWS_SECRET_ACCESS_KEY'
region_name = 'YOUR_REGION_NAME'

# Create an AWS session
session = boto3.Session(
    aws_access_key_id=aws_access_key_id,
    aws_secret_access_key=aws_secret_access_key,
    region_name=region_name
)

# Initialize the Lambda client
lambda_client = session.client('lambda')

# Define the Lambda function name and role ARN
function_name = 'square_function'
role_arn = 'YOUR_LAMBDA_ROLE_ARN'  # Replace with your Lambda execution role ARN

# Create a zip file containing the Lambda function code
zip_buffer = io.BytesIO()
with zipfile.ZipFile(zip_buffer, mode='w') as zf:
    zf.writestr('lambda_function.py', "def lambda_handler(event, context):\n\treturn event['number'] ** 2")
zip_buffer.seek(0)

# Create the Lambda function
response = lambda_client.create_function(
    FunctionName=function_name,
    Runtime='python3.8',
    Role=role_arn,
    Handler='lambda_function.lambda_handler',
    Code={
        'ZipFile': zip_buffer.read()
    }
)
print("Lambda function created:", response)

# Invoke the Lambda function with an input number
input_number = 5
payload = {
    'number': input_number
}
response = lambda_client.invoke(
    FunctionName=function_name,
    InvocationType='RequestResponse',
    Payload=json.dumps(payload)
)

# Read the Lambda function response and print the result
result = json.load(response['Payload'])
print(f"The square of {input_number} is: {result}")
```

Make sure to replace `YOUR_AWS_ACCESS_KEY_ID`, `YOUR_AWS_SECRET_ACCESS_KEY`, `YOUR_REGION_NAME`, and `YOUR_LAMBDA_ROLE_ARN` with your own AWS credentials, region, and Lambda execution role ARN.

This script creates a new Lambda function called `square_function`, uploads code that returns the square of an input number, and then invokes the function with a specified input number. The result will be printed in the console.