def read_script(script_path: str) -> str:
    """Read in IMSDB script as a string

    Parameters
    ----------
    script_path : str
        Path to the script 
    """
    with open(script_path, 'r') as f:
        file = f.read().splitlines()
    
    all_lines = []
    for line in file:
        line = " ".join(line.split())
        all_lines.append(line)
    
    all_lines = ' '.join(all_lines)
    return all_lines